From 7eb8df2777477b6385777bb136f9a5045f17b71b Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Wed, 7 Feb 2018 08:39:25 -0800 Subject: [PATCH] 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 --- yoga/Yoga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index 261b377e..81de56f2 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -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++; }