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:
@@ -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;;
|
||||
|
||||
Reference in New Issue
Block a user