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 authored and Facebook Github Bot committed 2017-02-03 11:28:48 -08:00
1 parent 00efe02c5b
commit 82f61b990a
4 files changed
+8 -8

No files matched your search

@@ -20,7 +20,7 @@ public interface YogaNodeAPI<YogaNodeType extends YogaNodeAPI> {
void setMeasureFunction(YogaMeasureFunction measureFunction);
void setBaselineFunction(YogaBaselineFunction measureFunction);
boolean isMeasureDefined();
void calculateLayout();
void calculateLayout(float width, float height);
boolean isDirty();
boolean hasNewLayout();
void dirty();