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

git-svn-id: svn://10.0.0.236/trunk@66717 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-04-21 14:50:21 +00:00
parent faa0f9f117
commit 9d7ff496b5

View File

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