Skip to content

Commit 1d9c22a

Browse files
committed
Position: Fixed window detection.
1 parent 50cbf9f commit 1d9c22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.position.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $.fn.position = function(options) {
3333
targetWidth = target.width();
3434
targetHeight = target.height();
3535
basePosition = { top: 0, left: 0 };
36-
} else if ('scrollTo' in options.of && options.of.document) {
36+
} else if (options.of.scrollTo && options.of.document) {
3737
targetWidth = target.width();
3838
targetHeight = target.height();
3939
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };

0 commit comments

Comments
 (0)