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);
|
FindRect(fFocusRow, &fFocusRowRect);
|
||||||
}
|
}
|
||||||
|
|
||||||
Invalidate(BRect(0, parentRect.top, fVisibleRect.right,
|
if (parentRect.top < fVisibleRect.bottom) {
|
||||||
fVisibleRect.bottom));
|
Invalidate(BRect(0, parentRect.top, fVisibleRect.right,
|
||||||
|
fVisibleRect.bottom));
|
||||||
|
}
|
||||||
FixScrollBar(false);
|
FixScrollBar(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user