bento icon indicating copy to clipboard operation
bento copied to clipboard

Crash when reordering ListComponent with dividers.

Open wyattjsmith1 opened this issue 5 years ago • 1 comments

There is a crash if the user attempts to reorder a ListComponent with dividers. This is because the ListComponent implements onItemsMoved and automatically moves the data in mData. The size of mData will always be (about) half of the total size of the component because of the dividers.

I believe the solution to this will be checking if dividers are enabled, and if so, dividing them by 2 when reordering the data.

wyattjsmith1 avatar Jul 16 '19 21:07 wyattjsmith1

From a design perspective, I would remove the divider from the ListComponent to be honest.

redwarp avatar Jul 31 '19 12:07 redwarp