diff options
author | Michał Z. Gołębiowski <michal.golebiowski@laboratorium.ee> | 2013-03-12 21:06:25 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-03-12 21:06:25 -0400 |
commit | 79992d752393d80822a4f8be2b7bec3ecdd60f6a (patch) | |
tree | 2c97c4bda379e70501b15f106f5efa241c220fe3 /src/dimensions.js | |
parent | ae3524642c54ec4df09733de03c169f4fd43ac34 (diff) | |
download | jquery-79992d752393d80822a4f8be2b7bec3ecdd60f6a.tar.gz jquery-79992d752393d80822a4f8be2b7bec3ecdd60f6a.zip |
Edited comments and minor adjustments. Fixes #13553. Closes gh-1195.
Diffstat (limited to 'src/dimensions.js')
-rw-r--r-- | src/dimensions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dimensions.js b/src/dimensions.js index 9e4d5729d..ae59fb05d 100644 --- a/src/dimensions.js +++ b/src/dimensions.js @@ -20,8 +20,8 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { if ( elem.nodeType === 9 ) { doc = elem.documentElement; - // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest - // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it. + // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], + // whichever is greatest return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], |