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