BColumnListView: Don't invalidate if the row is below the visible rect.
Another significant invalidations optimization.
This commit is contained in:
@@ -4339,8 +4339,10 @@ OutlineView::ExpandOrCollapse(BRow* parentRow, bool expand)
|
||||
FindRect(fFocusRow, &fFocusRowRect);
|
||||
}
|
||||
|
||||
Invalidate(BRect(0, parentRect.top, fVisibleRect.right,
|
||||
fVisibleRect.bottom));
|
||||
if (parentRect.top < fVisibleRect.bottom) {
|
||||
Invalidate(BRect(0, parentRect.top, fVisibleRect.right,
|
||||
fVisibleRect.bottom));
|
||||
}
|
||||
FixScrollBar(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user