View Single Post
05/10/16, 06:11 PM   #10
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Letho View Post
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.
  Reply With Quote