BColumnListView: Don't invalidate if the row is below the visible rect.

Another significant invalidations optimization.
This commit is contained in:
Augustin Cavalier
2025-02-15 21:49:31 -05:00
parent 6f0caabcf7
commit 07f87734c5
+4 -2
View File
@@ -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);
}
}