Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: drawmaster77 on January 17, 2014, 05:29:33 AM

Title: UIGrid within UITable reposition issues
Post by: drawmaster77 on January 17, 2014, 05:29:33 AM
I have a UITable that consists of categories which each use a UIGrid to display items (all vertical aligned). I am seeing random offsets when populating the table and calling repositionNow = true later. Am I missing something here or is this not supported?

Thanks.
Title: Re: UIGrid within UITable reposition issues
Post by: ArenMook on January 17, 2014, 09:33:15 PM
If I understand correctly, you have a UITable containing multiple UIGrids? You would need to make sure that your UIGrids execute after your UITable -- whether by doing it manually, or by changing the script execution order.
Title: Re: UIGrid within UITable reposition issues
Post by: drawmaster77 on January 20, 2014, 04:06:38 AM
thank you that pointed me into the right direction. I removed nested UIGrids for sake of simplicity, now I just have a simple UITable with UISprite elements. I've noticed that I had to change UITable execution order AFTER UIScrollbar, otherwise first reposition call would not place the elements in the correct location.