Navigation Menu

Skip to content

Commit

Permalink
Position: Fixed window detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Dec 24, 2009
1 parent 50cbf9f commit 1d9c22a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.position.js
Expand Up @@ -33,7 +33,7 @@ $.fn.position = function(options) {
targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: 0, left: 0 };
} else if ('scrollTo' in options.of && options.of.document) {
} else if (options.of.scrollTo && options.of.document) {
targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };
Expand Down

0 comments on commit 1d9c22a

Please sign in to comment.