Fix screenshot test due main axis justification refactor
Summary: There was a slight error in main axis justification which caused the regression Reviewed By: emilsjolander Differential Revision: D6923178 fbshipit-source-id: d8f81b06d9127c75daecffb73b5e6c5abbad8ade
This commit is contained in:
committed by
Facebook Github Bot
parent
75473fd924
commit
7eb8df2777
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user