Skip to content

Commit

Permalink
Position: Use a better check for determining if an object is a window…
Browse files Browse the repository at this point in the history
…. Fixes #6201 - Autocomplete: Broken menu in IE8 Standards Mode when including prototype framework.
  • Loading branch information
scottgonzalez committed Oct 21, 2010
1 parent c74f538 commit eab0a6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/jquery.ui.position.js
Expand Up @@ -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() };
Expand Down

0 comments on commit eab0a6d

Please sign in to comment.