From 1d9c22a652ac24037ec12a040bf5fe823b489c4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 24 Dec 2009 02:35:19 +0000 Subject: [PATCH] Position: Fixed window detection. --- ui/jquery.ui.position.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 0b7563b10..e28295aa5 100644 --- a/ui/jquery.ui.position.js +++ b/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() }; -- 2.39.5