Skip to content
Permalink
Browse files

Position: Fix orientation check for scrollbar widths. Fixes #8763 - P…

…osition: getScrollInfo() swapped width and height.
  • Loading branch information
scottgonzalez committed Feb 26, 2013
1 parent d5d3a74 commit e9c04bfa430eb6b18e7fe1be2f8d162e01181a94
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) {

0 comments on commit e9c04bf

Please sign in to comment.
You can’t perform that action at this time.