fix: remove gap if its last element in line #1188

Closed
intergalacticspacehighway wants to merge 3 commits from fix/remove-gap-last-element into main
Showing only changes of commit 97be2cedce - Show all commits

View File

@@ -2543,7 +2543,7 @@ static void YGJustifyMainAxis(
const bool isLastChild = i == collectedFlexItemsValues.endOfLineIndex - 1;
// remove the gap if it is the last element of the line
if (isLastChild) {
betweenMainDim -= gap;
betweenMainDim -= gap;
}
if (childStyle.display() == YGDisplayNone) {
continue;