Skip to content

Commit 25ad3a9

Browse files
committed
Issue #2688 - Don't apply auto min-sizing when flex max-sizing.
A grid item spanning multiple grid rows/columns which include a flexible track should not participate in the auto min-sizing calculation. Resolves #2688
1 parent da971a8 commit 25ad3a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

layout/generic/nsGridContainerFrame.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4519,6 +4519,7 @@ nsGridContainerFrame::Tracks::ResolveIntrinsicSize(
45194519

45204520
// Check if we need to apply "Automatic Minimum Size" and cache it.
45214521
if ((state & TrackSize::eAutoMinSizing) &&
4522+
!(state & TrackSize::eFlexMaxSizing) &&
45224523
gridItem.ShouldApplyAutoMinSize(wm, mAxis, aPercentageBasis)) {
45234524
gridItem.mState[mAxis] |= ItemState::eApplyAutoMinSize;
45244525
}

0 commit comments

Comments
 (0)