core: height() method wasn't working reliably in Opera - rather than returning the...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 7 Nov 2008 15:44:33 +0000 (15:44 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 7 Nov 2008 15:44:33 +0000 (15:44 +0000)
src/core.js

index b35b2e9..081c5b4 100644 (file)
@@ -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 ] ||