Replaced first pass with a function

Summary: Added a function which does the first pass to determine the free space based on flex items whose min and max constraints are triggered

Reviewed By: emilsjolander

Differential Revision: D6819719

fbshipit-source-id: e5e77c21d1dca2255433da3388887d9db3f7b642
This commit is contained in:
Pritesh Nandgaonkar
2018-02-05 06:33:01 -08:00
committed by Facebook Github Bot
parent 27d2ad198e
commit 802fe6bb29
2 changed files with 119 additions and 99 deletions

View File

@@ -44,6 +44,7 @@ struct YGCollectFlexItemsRowValues {
float totalFlexShrinkScaledFactors;
float endOfLineIndex;
std::vector<YGNodeRef> relativeChildren;
float remainingFreeSpace;
};
bool YGValueEqual(const YGValue a, const YGValue b);