Skip to content

Commit bb82ad3

Browse files
committed
1 parent 4f2e209 commit bb82ad3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dimensions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
3333

3434
return ("scrollTo" in elem && elem.document) ? // does it walk and quack like a window?
3535
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
36+
window[ "inner" + name ] ||
3637
elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
3738
elem.document.body[ "client" + name ] :
3839

0 commit comments

Comments
 (0)