mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
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.
This commit is contained in:
3
ui/jquery.ui.position.js
vendored
3
ui/jquery.ui.position.js
vendored
@@ -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() };
|
||||
|
||||
Reference in New Issue
Block a user