View Single Post
06/20/17, 08:20 AM   #7
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Originally Posted by Lum1on View Post
I just don't really understand why LUA doesn't automatically determine the height of the ZO_ScrollList element and it uses a specific height in all of them.
That's what I am trying to explain for the third time already. The ZO_ScrollList implementation has no way to know the height, because the elements do not exist while out of view, so it cannot calculate the overall height.
You would need to implement your own function to calculate the overall height in order to do what you want.

EDIT: And as Dolgubon mentions, the ZO_ScrollList is not part of Lua itself. It's a component provided by ZOS.
  Reply With Quote