On macOS TListView does not repaint itself after sorting
Original Reporter info from Mantis: Wallaby
-
Reporter name:
Original Reporter info from Mantis: Wallaby
- Reporter name:
Description:
A regular TListView with a couple of columns and a few rows does not repaint itself after being sorted.
Steps to reproduce:
- Create a new application
- Drop TListView on the form and set AutoSort = True, ViewStyle = vsReport, SortType = stText.
- Create a couple of columns in that list view.
- Add a few items like:
ZZZ|ZZZ1
BBB|BBB1
AAA|AAA1
Click a column once. The data will be sorted. Click the same column again, the data does not change.
Clicking the list view's contents cause the control to redraw and the new sort order to be shown.
Additional information:
Expected behaviour: the list view must be repainted each time its contents are sorted (that is the case on Windows and Linux).
Actual behaviour: the list view is only repainted after the first sort unless we click the contents (Cocoa-only issue)
Sample project attached.
Mantis conversion info:
- Mantis ID: 35642
- Version: 2.0.3 (SVN)
- Fixed in revision: 61298 (#e80efec7)