Originally Posted by Letho
I'd like to set up a scrollable area from scratch, that means not using any inherited or predefined control/code written by zenimax.
|
I'd advise you to try using ZO_ScrollList. It's almost guaranteed to perform better.
In your code above, you're creating as many icon controls as there are icons in your dataset. And each time you scroll, all of them need to follow their anchor to the container; including those not currently visible.
ZO_ScrollList, on the other hand, creates only enough row controls to fill the area; and reuses them as you scroll around. That means fewer controls overall, and fewer anchor updates when scrolling.