diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-05-16 06:26:03 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-05-16 06:26:03 -0400 |
commit | 1d3b8ff78eaa3d64a839ba34af34d1e8b24f82af (patch) | |
tree | 71687ad92aea81bf5a1f354816b831fa06b9ca5c /ui | |
parent | ce73a2688de47c975727ad9555cae84eb6997486 (diff) | |
download | jquery-ui-1d3b8ff78eaa3d64a839ba34af34d1e8b24f82af.tar.gz jquery-ui-1d3b8ff78eaa3d64a839ba34af34d1e8b24f82af.zip |
Position: Use absolute positioning when getting scrollbar width to avoid reflows of user content. Fixes #9291 - Position - $.position.scrollbarWidth detection causes layout issues.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.position.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 2d3451c06..d45b24bb1 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -70,7 +70,7 @@ $.position = { return cachedScrollbarWidth; } var w1, w2, - div = $( "<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ), + div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ), innerDiv = div.children()[0]; $( "body" ).append( div ); |