Fix clone of MutableYogaValue inside LayoutShadowNode

Reviewed By: achen1

Differential Revision: D7815809

fbshipit-source-id: 833af43387895b0b5193d6bef54c99023da01c9c
This commit is contained in:
David Vacca 2018-05-01 08:01:48 -07:00 committed by Facebook Github Bot
parent 2d9e2f30e1
commit 837d496ac8
1 changed files with 1 additions and 2 deletions

View File

@ -74,7 +74,7 @@ public class LayoutShadowNode extends ReactShadowNodeImpl {
protected LayoutShadowNode(LayoutShadowNode node) {
super(node);
mTempYogaValue = new MutableYogaValue();
mTempYogaValue = new MutableYogaValue(node.mTempYogaValue);
}
@Override
@ -527,7 +527,6 @@ public class LayoutShadowNode extends ReactShadowNodeImpl {
if (isVirtual()) {
return;
}
if (overflow == null) {
setOverflow(YogaOverflow.VISIBLE);
return;