Only look at computed style if key was not set inline
Summary: Prefer inline style to computed style as inline style should be the source of truth and computed style may differ Reviewed By: gkassabli Differential Revision: D4029373 fbshipit-source-id: 39ce9d577f295c2361dc384212d7467418c63c33
This commit is contained in:
committed by
Facebook Github Bot
parent
bfb9b926b3
commit
501ed57784
@@ -479,7 +479,7 @@ function getCSSLayoutStyle(node) {
|
||||
'min-height',
|
||||
'max-height',
|
||||
].reduce(function(map, key) {
|
||||
map[key] = getComputedStyle(node, null).getPropertyValue(key);
|
||||
map[key] = node.style[key] || getComputedStyle(node, null).getPropertyValue(key);
|
||||
return map;
|
||||
}, {});
|
||||
}
|
||||
|
Reference in New Issue
Block a user