From: Scott González Date: Thu, 16 May 2013 12:34:04 +0000 (-0400) Subject: Position: Use absolute positioning when getting scrollbar width to avoid reflows... X-Git-Tag: 1.11.0-beta.1~328 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d500e945a46c9e2ce5bbb685661c32b5d3f57d21;p=jquery-ui.git Position: Use absolute positioning when getting scrollbar width to avoid reflows of user content. Fixes #9291 - Position - $.position.scrollbarWidth detection causes layout issues. --- 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 = $( "
" ), innerDiv = div.children()[0]; $( "body" ).append( div );