Skip to content

Commit

Permalink
Fix screenshot test due main axis justification refactor
Browse files Browse the repository at this point in the history
Reviewed By: emilsjolander

Differential Revision: D6923178

fbshipit-source-id: d8f81b06d9127c75daecffb73b5e6c5abbad8ade
  • Loading branch information
priteshrnandgaonkar authored and facebook-github-bot committed Feb 7, 2018
1 parent 46f4d3e commit 64d530b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactCommon/yoga/yoga/Yoga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ static void YGJustifyMainAxis(
i < collectedFlexItemsValues.endOfLineIndex;
i++) {
const YGNodeRef child = node->getChild(i);
if (style.positionType == YGPositionTypeRelative) {
if (child->getStyle().positionType == YGPositionTypeRelative) {
if (child->marginLeadingValue(mainAxis).unit == YGUnitAuto) {
numberOfAutoMarginsOnCurrentLine++;
}
Expand Down

0 comments on commit 64d530b

Please sign in to comment.