From: Scott González Date: Tue, 26 Feb 2013 13:59:28 +0000 (-0500) Subject: Position: Fix orientation check for scrollbar widths. Fixes #8763 - Position: getScro... X-Git-Tag: 1.10.2~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e9c04bfa430eb6b18e7fe1be2f8d162e01181a94;p=jquery-ui.git Position: Fix orientation check for scrollbar widths. Fixes #8763 - Position: getScrollInfo() swapped width and height. --- diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 81f1e4e8a..2d3451c06 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -95,8 +95,8 @@ $.position = { hasOverflowY = overflowY === "scroll" || ( overflowY === "auto" && within.height < within.element[0].scrollHeight ); return { - width: hasOverflowX ? $.position.scrollbarWidth() : 0, - height: hasOverflowY ? $.position.scrollbarWidth() : 0 + width: hasOverflowY ? $.position.scrollbarWidth() : 0, + height: hasOverflowX ? $.position.scrollbarWidth() : 0 }; }, getWithinInfo: function( element ) {