Loading core/misc/position.js +3 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ offset: { top: 0, left: 0 }, }; } if ($.isWindow(raw)) { if (!!raw && raw === raw.window) { return { width: elem.width(), height: elem.height(), Loading Loading @@ -346,7 +346,8 @@ }, getWithinInfo(element) { const withinElement = $(element || window); const isWindow = $.isWindow(withinElement[0]); const isWindow = !!withinElement[0] && withinElement[0] === withinElement[0].window; const isDocument = !!withinElement[0] && withinElement[0].nodeType === 9; const hasOffset = !isWindow && !isDocument; return { Loading Loading
core/misc/position.js +3 −2 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ offset: { top: 0, left: 0 }, }; } if ($.isWindow(raw)) { if (!!raw && raw === raw.window) { return { width: elem.width(), height: elem.height(), Loading Loading @@ -346,7 +346,8 @@ }, getWithinInfo(element) { const withinElement = $(element || window); const isWindow = $.isWindow(withinElement[0]); const isWindow = !!withinElement[0] && withinElement[0] === withinElement[0].window; const isDocument = !!withinElement[0] && withinElement[0].nodeType === 9; const hasOffset = !isWindow && !isDocument; return { Loading