diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2011-10-22 16:08:14 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-10-22 16:08:14 -0400 |
commit | e502012c0f8e7604eaabe4065ba769af04eec180 (patch) | |
tree | 59f60182e4a1fca47cc6364e6a20eb11fe29fda6 /src/css.js | |
parent | e1a5d3ebfbf963f373d8c6aa2fbec36bacc200be (diff) | |
download | jquery-e502012c0f8e7604eaabe4065ba769af04eec180.tar.gz jquery-e502012c0f8e7604eaabe4065ba769af04eec180.zip |
Landing pull request 553. Fallback to elem.style for disconnected nodes in width/height retrieval. Fixes #8388.
More Details:
- https://github.com/jquery/jquery/pull/553
- http://bugs.jquery.com/ticket/10254
- http://bugs.jquery.com/ticket/8388
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/css.js b/src/css.js index 2adfdffe1..ba645fb46 100644 --- a/src/css.js +++ b/src/css.js @@ -290,6 +290,10 @@ if ( document.documentElement.currentStyle ) { rsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ], style = elem.style; + if ( ret === null && style ) { + ret = style[ name ]; + } + // From the awesome hack by Dean Edwards // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 |