Skip to content

Commit 684cc4a

Browse files
woehrl01facebook-github-bot
authored andcommitted
Fix align-content:strech overriding align-item
Summary: Fix for #413. This was a hangover from a previous attept to fix other align-content problems. Closes facebook/yoga#417 Reviewed By: astreet Differential Revision: D4604727 Pulled By: emilsjolander fbshipit-source-id: 92fd31a385d8182c6b201c891d5ae478372d525d
1 parent 3a3ce5b commit 684cc4a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Yoga.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,8 +2666,7 @@ static void YGNodelayoutImpl(const YGNodeRef node,
26662666
}
26672667

26682668
// STEP 8: MULTI-LINE CONTENT ALIGNMENT
2669-
if (performLayout &&
2670-
(lineCount > 1 || node->style.alignContent == YGAlignStretch || YGIsBaselineLayout(node)) &&
2669+
if (performLayout && (lineCount > 1 || YGIsBaselineLayout(node)) &&
26712670
!YGFloatIsUndefined(availableInnerCrossDim)) {
26722671
const float remainingAlignContentDim = availableInnerCrossDim - totalLineCrossDim;
26732672

0 commit comments

Comments
 (0)