Skip to content

Commit

Permalink
Update w2utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
suitedJK committed Jul 4, 2015
1 parent 7e7aa1e commit e1f62ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/w2utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ w2utils.event = {
if (options.maxHeight && maxHeight > options.maxHeight) maxHeight = options.maxHeight;
if (h > maxHeight) {
overflowY = true;
div2.height(maxHeight).width(w).css({ 'overflow-y': 'auto' });
div2.height(maxHeight).width(w + w2utils.scrollBarSize()).css({ 'overflow-y': 'auto' });
h = maxHeight;
}
div1.css('top', (offsetTop - h - tipOffset + options.top) + 'px');
Expand All @@ -1478,7 +1478,7 @@ w2utils.event = {
if (options.maxHeight && maxHeight > options.maxHeight) maxHeight = options.maxHeight;
if (h > maxHeight) {
overflowY = true;
div2.height(maxHeight).width(w).css({ 'overflow-y': 'auto' });
div2.height(maxHeight).width(w + w2utils.scrollBarSize()).css({ 'overflow-y': 'auto' });
}
div1.find('>style').html(
'#w2ui-overlay'+ name +':before { display: block; margin-left: '+ parseInt(tipLeft) +'px; }'+
Expand Down

0 comments on commit e1f62ce

Please sign in to comment.