Pass parent with down with calculateLayout to allow percentages on root node

Reviewed By: astreet

Differential Revision: D4501016

fbshipit-source-id: 0c9502e86ff200c021c78afb7ac4b48cf11b3bdb
This commit is contained in:
Emil Sjolander
2017-02-03 11:19:45 -08:00
committed by Facebook Github Bot
parent 00efe02c5b
commit 82f61b990a
4 changed files with 8 additions and 8 deletions

View File

@@ -345,7 +345,7 @@ public class ReactShadowNode {
}
public void calculateLayout() {
mYogaNode.calculateLayout();
mYogaNode.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
}
public final boolean hasNewLayout() {