View Single Post
09-18-20, 08:32 PM   #2
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
When you done with refreshData, you need use scrollFrame:UpdateScrollChildRect() to update the scrollchild's height based on those roster buttons, or you could adjust the scroll child's height based on the visible buttons's count.

Edit. Seems there is no need to call the UpdateScrollChildRect manually, the OnScrollRangeChanged works for it.

Also for your code, you can set those buttons's location when you create them, no need to repeat setPosition for each time.

Seems there is no error in those code, could be a bug to be checked again when 9.0 started.

Last edited by kurapica.igas : 09-19-20 at 07:01 AM.
  Reply With Quote