Allow setting 'rows' attribute on a <tree> without children (initially)

This commit is contained in:
cmanske%netscape.com 2000-04-21 14:50:21 +00:00
Родитель afaa6c9492
Коммит 86d83122aa
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -431,6 +431,11 @@ nsTreeFrame::Reflow(nsIPresContext* aPresContext,
if (mFixedRows != -1) {
PRInt32 totalRows = mCellMap->GetRowCount();
// If no rows yet, they will be added dynamically,
// so don't bother with reflow now
if (totalRows == 0)
return rv;
if (totalRows < mFixedRows) {
if (totalRows == 0) aDesiredSize.height = 0 +
aReflowState.mComputedBorderPadding.top + aReflowState.mComputedBorderPadding.bottom;;