Skip to content
Permalink
Browse files

Position: Use absolute positioning when getting scrollbar width to av…

…oid reflows of user content. Fixes #9291 - Position - $.position.scrollbarWidth detection causes layout issues.

(cherry picked from commit d500e94)
  • Loading branch information...
scottgonzalez committed May 16, 2013
1 parent d8e166b commit edf36f35ce84a67376d7e9fedd21fc07b38100c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit edf36f3

Please sign in to comment.
You can’t perform that action at this time.