git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325755d
)
core: height() method wasn't working reliably in Opera - rather than returning the...
author
Paul Bakaus
<paul.bakaus@googlemail.com>
Fri, 7 Nov 2008 15:44:33 +0000
(15:44 +0000)
committer
Paul Bakaus
<paul.bakaus@googlemail.com>
Fri, 7 Nov 2008 15:44:33 +0000
(15:44 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
b35b2e9
..
081c5b4
100644
(file)
--- 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 ] ||