X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fcore.js;h=081c5b4398510b18533f81e253944b5fc91febef;hb=b64d60940d7e66eb636e255b51ea5020c0399524;hp=b35b2e96152af325340de4ae8273ad05db8a747d;hpb=325755d4b38e87b13f9c24a4c2991ec497552aad;p=jquery.git diff --git a/src/core.js b/src/core.js index b35b2e9..081c5b4 100644 --- a/src/core.js +++ b/src/core.js @@ -1347,7 +1347,7 @@ jQuery.each([ "Height", "Width" ], function(i, name){ // Get window width or height return this[0] == window ? // Opera reports document.body.client[Width/Height] properly in both quirks and standards - jQuery.browser.opera && document.body[ "client" + name ] || + jQuery.browser.opera && document.body.parentNode[ "client" + name ] || // Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths) jQuery.browser.safari && window[ "inner" + name ] ||