mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user