aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2011-10-22 16:08:14 -0400
committertimmywil <timmywillisn@gmail.com>2011-10-22 16:08:14 -0400
commite502012c0f8e7604eaabe4065ba769af04eec180 (patch)
tree59f60182e4a1fca47cc6364e6a20eb11fe29fda6 /src/css.js
parente1a5d3ebfbf963f373d8c6aa2fbec36bacc200be (diff)
downloadjquery-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.js4
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