mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
bug 48295 (floating nested table height initially 0, makes layout wrong)
r=karnaze values from the wrong struct were getting passed into SetTallestCell
This commit is contained in:
parent
9b2c335e20
commit
2becb1fc67
@ -1132,7 +1132,7 @@ nsTableRowFrame::InitialReflow(nsIPresContext* aPresContext,
|
||||
// XXX do we need to call CalculateCellActualSize?
|
||||
PlaceChild(aPresContext, aReflowState, kidFrame, kidSize, x, 0,
|
||||
aDesiredSize.maxElementSize, &kidMaxElementSize);
|
||||
SetTallestCell(aDesiredSize.height, aDesiredSize.ascent, aDesiredSize.descent, aReflowState.tableFrame, (nsTableCellFrame*)kidFrame);
|
||||
SetTallestCell(kidSize.height, kidSize.ascent, kidSize.descent, aReflowState.tableFrame, (nsTableCellFrame*)kidFrame);
|
||||
x += kidSize.width + cellSpacingX;
|
||||
}
|
||||
else
|
||||
|
@ -1132,7 +1132,7 @@ nsTableRowFrame::InitialReflow(nsIPresContext* aPresContext,
|
||||
// XXX do we need to call CalculateCellActualSize?
|
||||
PlaceChild(aPresContext, aReflowState, kidFrame, kidSize, x, 0,
|
||||
aDesiredSize.maxElementSize, &kidMaxElementSize);
|
||||
SetTallestCell(aDesiredSize.height, aDesiredSize.ascent, aDesiredSize.descent, aReflowState.tableFrame, (nsTableCellFrame*)kidFrame);
|
||||
SetTallestCell(kidSize.height, kidSize.ascent, kidSize.descent, aReflowState.tableFrame, (nsTableCellFrame*)kidFrame);
|
||||
x += kidSize.width + cellSpacingX;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user