Mitigate "Variable Delegate Size" issue in ListView
-
I'm using a ListView to display a variable number of elements. I attached a custom ScrollBar to the list view. Since my elements have different heights, I'm facing Variable Delegate Size and Section Labels issue.
The documentation suggests increasing thecacheBuffer
, but I don't really like this fix. Is there a way to let the scroll bar know the full size of my list view? I know how to calculate the height of each delegate. I could use a Repeater and simply show them all in a ScrollView, but that only works when the number of elements is small.
For now, I'm simply hiding the scroll bar while I wait to find a way to fix this.