mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #1838 - Part 6: Re-resolve row-gap against the sum of row track sizes for auto-sized grid containers
Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1458902
This commit is contained in:
parent
57d616da4c
commit
5800b95cd0
1 changed files with 5 additions and 0 deletions
|
|
@ -6214,6 +6214,11 @@ nsGridContainerFrame::Reflow(nsPresContext* aPresContext,
|
|||
computedISize, bSize);
|
||||
|
||||
if (!prevInFlow) {
|
||||
if (computedBSize == NS_AUTOHEIGHT && stylePos->mRowGap.HasPercent()) {
|
||||
// Re-resolve the row-gap now that we know our intrinsic block-size.
|
||||
gridReflowInput.mRows.mGridGap =
|
||||
nsLayoutUtils::ResolveGapToLength(stylePos->mRowGap, bSize);
|
||||
}
|
||||
// Apply 'align/justify-content' to the grid.
|
||||
// CalculateTrackSizes did the columns.
|
||||
gridReflowInput.mRows.AlignJustifyContent(stylePos, wm, contentArea.Size(wm));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue