Author Topic: UIGrid within UITable reposition issues  (Read 6112 times)

drawmaster77

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
UIGrid within UITable reposition issues
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIGrid within UITable reposition issues
« Reply #1 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.

drawmaster77

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: UIGrid within UITable reposition issues
« Reply #2 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.