Skip to content

Commit

Permalink
Position: Increase scrollbar test div to handle larger scrollbars
Browse files Browse the repository at this point in the history
Fixes #15106
Closes gh-1811
  • Loading branch information
scottgonzalez committed May 4, 2017
1 parent 0b7246b commit efb1fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ $.position = {
return cachedScrollbarWidth;
}
var w1, w2,
div = $( "<div " +
"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +
"<div style='height:100px;width:auto;'></div></div>" ),
div = $( "<div style=" +
"'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" +
"<div style='height:300px;width:auto;'></div></div>" ),
innerDiv = div.children()[ 0 ];

$( "body" ).append( div );
Expand Down

0 comments on commit efb1fee

Please sign in to comment.