Skip to content
Permalink
Browse files

Position: Fixed window detection.

  • Loading branch information
scottgonzalez committed Dec 24, 2009
1 parent 50cbf9f commit 1d9c22a652ac24037ec12a040bf5fe823b489c4b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.position.js
@@ -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() };

0 comments on commit 1d9c22a

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