]> source.dussan.org Git - jquery-ui.git/commitdiff
Position: Fix orientation check for scrollbar widths. Fixes #8763 - Position: getScro...
authorScott González <scott.gonzalez@gmail.com>
Tue, 26 Feb 2013 13:59:28 +0000 (08:59 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 26 Feb 2013 13:59:28 +0000 (08:59 -0500)
ui/jquery.ui.position.js

index 81f1e4e8ac5bd3b95460c852e235fa68a24bcf95..2d3451c0693fd4050039bf5bb98bbf99a5a632f3 100644 (file)
@@ -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 ) {