aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-02-26 08:59:28 -0500
committerScott González <scott.gonzalez@gmail.com>2013-02-26 08:59:28 -0500
commite9c04bfa430eb6b18e7fe1be2f8d162e01181a94 (patch)
tree64fa6020c30ffb6fe2338007637ec1e46b4d08e0
parentd5d3a745b00dd476195cf25b35cc02f3bc31f814 (diff)
downloadjquery-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.js4
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 ) {