Fix tree painting bug. r=ben

git-svn-id: svn://10.0.0.236/trunk@75200 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
2000-07-30 07:05:04 +00:00
parent b93eb7a136
commit 7b5c94fdfd

View File

@@ -431,6 +431,10 @@ void nsXULTreeGroupFrame::OnContentRemoved(nsIPresContext* aPresContext,
PRInt32 newCount = mOuterFrame->GetRowCount();
PRInt32 delta = rowCount - newCount;
mOuterFrame->ScrollToIndex(index-delta);
if (index-delta <= 0) {
// Repaint the world.
mOuterFrame->Redraw(state, nsnull, PR_FALSE);
}
return;
}
}