Bug 1229165 - [css-grid] Apply min/max-width/height properties to clamp block-size of auto-height grid containers. r=dholbert

This commit is contained in:
Mats Palmgren 2015-12-02 14:12:24 +01:00
parent 2f96a32a2b
commit c346c4cf63

View File

@ -3007,6 +3007,9 @@ nsGridContainerFrame::Reflow(nsPresContext* aPresContext,
bSize += gridReflowState.mRows.mSizes[i].mBase;
}
bSize += gridReflowState.mRows.SumOfGridGaps();
bSize = NS_CSS_MINMAX(bSize,
aReflowState.ComputedMinBSize(),
aReflowState.ComputedMaxBSize());
} else {
bSize = computedBSize;
}