From 9d7ff496b528d3eff7dc4bd0f808d0e728411fb2 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Fri, 21 Apr 2000 14:50:21 +0000 Subject: [PATCH] Allow setting 'rows' attribute on a without children (initially) git-svn-id: svn://10.0.0.236/trunk@66717 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsTreeFrame.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/layout/xul/base/src/nsTreeFrame.cpp b/mozilla/layout/xul/base/src/nsTreeFrame.cpp index 2192428e6c7..cf79fabb0fd 100644 --- a/mozilla/layout/xul/base/src/nsTreeFrame.cpp +++ b/mozilla/layout/xul/base/src/nsTreeFrame.cpp @@ -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;;