Skip to content

Commit

Permalink
Moved out main axis justification logic to seperate function
Browse files Browse the repository at this point in the history
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 9daa174
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 163 deletions.
7 changes: 7 additions & 0 deletions ReactCommon/yoga/yoga/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 9daa174

Please sign in to comment.