зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
ac1576b1d1
Коммит
644740d8b6
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче