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:
buster%netscape.com 2000-08-31 02:57:58 +00:00
Родитель ac1576b1d1
Коммит 644740d8b6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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