We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7429ed commit 9bb51d3Copy full SHA for 9bb51d3
ui/position.js
@@ -123,8 +123,11 @@ $.position = {
123
offset: withinElement.offset() || { left: 0, top: 0 },
124
scrollLeft: withinElement.scrollLeft(),
125
scrollTop: withinElement.scrollTop(),
126
- width: isWindow ? withinElement.width() : withinElement.outerWidth(),
127
- height: isWindow ? withinElement.height() : withinElement.outerHeight()
+
+ // support: jQuery 1.6.x
128
+ // jQuery 1.6 doesn't support .outerWidth/Height() on documents or windows
129
+ width: isWindow || isDocument ? withinElement.width() : withinElement.outerWidth(),
130
+ height: isWindow || isDocument ? withinElement.height() : withinElement.outerHeight()
131
};
132
}
133
0 commit comments