From 7b5c94fdfd671ef196f6d23d306775cf4322ea96 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Sun, 30 Jul 2000 07:05:04 +0000 Subject: [PATCH] Fix tree painting bug. r=ben git-svn-id: svn://10.0.0.236/trunk@75200 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/xul/base/src/nsXULTreeGroupFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/layout/xul/base/src/nsXULTreeGroupFrame.cpp b/mozilla/layout/xul/base/src/nsXULTreeGroupFrame.cpp index c4851b9f7bc..72bbf082ed0 100644 --- a/mozilla/layout/xul/base/src/nsXULTreeGroupFrame.cpp +++ b/mozilla/layout/xul/base/src/nsXULTreeGroupFrame.cpp @@ -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; } }