diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-02-26 08:59:28 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-02-26 08:59:28 -0500 |
commit | e9c04bfa430eb6b18e7fe1be2f8d162e01181a94 (patch) | |
tree | 64fa6020c30ffb6fe2338007637ec1e46b4d08e0 | |
parent | d5d3a745b00dd476195cf25b35cc02f3bc31f814 (diff) | |
download | jquery-ui-e9c04bfa430eb6b18e7fe1be2f8d162e01181a94.tar.gz jquery-ui-e9c04bfa430eb6b18e7fe1be2f8d162e01181a94.zip |
Position: Fix orientation check for scrollbar widths. Fixes #8763 - Position: getScrollInfo() swapped width and height.
-rw-r--r-- | ui/jquery.ui.position.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) { |