We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f753213 commit c97fd88Copy full SHA for c97fd88
1 file changed
yoga/algorithm/CalculateLayout.cpp
@@ -1414,14 +1414,18 @@ static void justifyMainAxis(
1414
// If we skipped the flex step, then we can't rely on the measuredDims
1415
// because they weren't computed. This means we can't call
1416
// dimensionWithMargin.
1417
+ const float minMaxAxisSize =
1418
+ child->hasErrata(Errata::FlexItemPercentMinMaxAgainstOwner)
1419
+ ? mainAxisOwnerSize
1420
+ : availableInnerMainDim;
1421
flexLine.layout.mainDim +=
1422
child->style().computeMarginForAxis(mainAxis, availableInnerWidth) +
1423
boundAxisWithinMinAndMax(
1424
child,
1425
direction,
1426
mainAxis,
1427
childLayout.computedFlexBasis,
- mainAxisOwnerSize,
1428
+ minMaxAxisSize,
1429
ownerWidth)
1430
.unwrap();
1431
flexLine.layout.crossDim = availableInnerCrossDim;
0 commit comments