Skip to content

Commit e9c04bf

Browse files
committed
Position: Fix orientation check for scrollbar widths. Fixes #8763 - Position: getScrollInfo() swapped width and height.
1 parent d5d3a74 commit e9c04bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.position.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ $.position = {
9595
hasOverflowY = overflowY === "scroll" ||
9696
( overflowY === "auto" && within.height < within.element[0].scrollHeight );
9797
return {
98-
width: hasOverflowX ? $.position.scrollbarWidth() : 0,
99-
height: hasOverflowY ? $.position.scrollbarWidth() : 0
98+
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
99+
height: hasOverflowX ? $.position.scrollbarWidth() : 0
100100
};
101101
},
102102
getWithinInfo: function( element ) {

0 commit comments

Comments
 (0)