aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.position.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-20 23:47:17 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-20 23:47:17 -0400
commiteab0a6dac13b642a870747249a360bdddb39da99 (patch)
tree70636bdc121706ea093b303493861dee3fc35cc8 /ui/jquery.ui.position.js
parentc74f53898e6191d23aa5e8f91f3a64903980d84d (diff)
downloadjquery-ui-eab0a6dac13b642a870747249a360bdddb39da99.tar.gz
jquery-ui-eab0a6dac13b642a870747249a360bdddb39da99.zip
Position: Use a better check for determining if an object is a window. Fixes #6201 - Autocomplete: Broken menu in IE8 Standards Mode when including prototype framework.
Diffstat (limited to 'ui/jquery.ui.position.js')
-rw-r--r--ui/jquery.ui.position.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js
index aa9881cff..deacedbcc 100644
--- a/ui/jquery.ui.position.js
+++ b/ui/jquery.ui.position.js
@@ -37,7 +37,8 @@ $.fn.position = function( options ) {
targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: 0, left: 0 };
- } else if ( targetElem.scrollTo && targetElem.document ) {
+ // TODO: use $.isWindow() in 1.9
+ } else if ( targetElem.setTimeout ) {
targetWidth = target.width();
targetHeight = target.height();
basePosition = { top: target.scrollTop(), left: target.scrollLeft() };