Permalink
Browse files

Moved out main axis justification logic to seperate function

Reviewed By: emilsjolander

Differential Revision: D6845997

fbshipit-source-id: fdb64e00de39427ce1d66d4fbfd06c23c0d32bcf
  • Loading branch information...
priteshrnandgaonkar authored and facebook-github-bot committed Feb 6, 2018
1 parent 9658d9f commit 9daa17458a5f4ab8ead4d7c29de331f08b1a4a46
Showing with 216 additions and 163 deletions.
  1. +7 −0 ReactCommon/yoga/yoga/Utils.h
  2. +209 −163 ReactCommon/yoga/yoga/Yoga.cpp
@@ -45,6 +45,13 @@ struct YGCollectFlexItemsRowValues {
float endOfLineIndex;
std::vector<YGNodeRef> relativeChildren;
float remainingFreeSpace;
// The size of the mainDim for the row after considering size, padding, margin
// and border of flex items. This is used to calculate maxLineDim after going
// through all the rows to decide on the main axis size of parent.
float mainDim;
// The size of the crossDim for the row after considering size, padding,
// margin and border of flex items. Used for calculating containers crossSize.
float crossDim;
};
bool YGValueEqual(const YGValue a, const YGValue b);
Oops, something went wrong.

0 comments on commit 9daa174

Please sign in to comment.