Skip to content

Commit

Permalink
Fix clone of MutableYogaValue inside LayoutShadowNode
Browse files Browse the repository at this point in the history
Reviewed By: achen1

Differential Revision: D7815809

fbshipit-source-id: 833af43387895b0b5193d6bef54c99023da01c9c
  • Loading branch information
mdvacca authored and facebook-github-bot committed May 1, 2018
1 parent 2d9e2f3 commit 837d496
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public LayoutShadowNode() {

protected LayoutShadowNode(LayoutShadowNode node) {
super(node);
mTempYogaValue = new MutableYogaValue();
mTempYogaValue = new MutableYogaValue(node.mTempYogaValue);
}

@Override
Expand Down Expand Up @@ -527,7 +527,6 @@ public void setOverflow(@Nullable String overflow) {
if (isVirtual()) {
return;
}

if (overflow == null) {
setOverflow(YogaOverflow.VISIBLE);
return;
Expand Down

0 comments on commit 837d496

Please sign in to comment.