Skip to content

Commit ee5c91c

Browse files
Fix for failing screenshot tests
Reviewed By: emilsjolander Differential Revision: D6726745 fbshipit-source-id: 99f91aabe2337b23953724545f97695238f2124e
1 parent fc6dd78 commit ee5c91c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ReactCommon/yoga/yoga/Yoga.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1553,9 +1553,6 @@ static void YGNodeComputeFlexBasisForChildren(
15531553
child->setDirty(false);
15541554
continue;
15551555
}
1556-
if (child->getStyle().positionType == YGPositionTypeAbsolute) {
1557-
continue;
1558-
}
15591556
if (performLayout) {
15601557
// Set the initial position (relative to the parent).
15611558
const YGDirection childDirection = child->resolveDirection(direction);
@@ -1568,6 +1565,10 @@ static void YGNodeComputeFlexBasisForChildren(
15681565
child->setPosition(
15691566
childDirection, mainDim, crossDim, availableInnerWidth);
15701567
}
1568+
1569+
if (child->getStyle().positionType == YGPositionTypeAbsolute) {
1570+
continue;
1571+
}
15711572
if (child == singleFlexChild) {
15721573
child->setLayoutComputedFlexBasisGeneration(gCurrentGenerationCount);
15731574
child->setLayoutComputedFlexBasis(0);

0 commit comments

Comments
 (0)