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 621969b commit d867ec0Copy full SHA for d867ec0
ReactCommon/yoga/yoga/Yoga.cpp
@@ -2540,6 +2540,11 @@ static void YGJustifyMainAxis(
2540
const YGNodeRef child = node->getChild(i);
2541
const YGStyle& childStyle = child->getStyle();
2542
const YGLayout childLayout = child->getLayout();
2543
+ const bool isLastChild = i == collectedFlexItemsValues.endOfLineIndex - 1;
2544
+ // remove the gap if it is the last element of the line
2545
+ if (isLastChild) {
2546
+ betweenMainDim -= gap;
2547
+ }
2548
if (childStyle.display() == YGDisplayNone) {
2549
continue;
2550
}
0 commit comments