Author Topic: UITable Reposition in Execution Time  (Read 3420 times)

YuriHeupa

  • Guest
UITable Reposition in Execution Time
« on: December 07, 2013, 08:32:53 AM »
Is there anyway to reposition childs of UITable in Execution time? I've an empty gameobject table, and in execution i use NGUITools.addchild to add a new object to the table, and every time i add a new object i call table.Reposition(), but every time i do it, the position of the table downs a little, and if i keeping adding objects and calling this method, the list goes out of the screen, any other method?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITable Reposition in Execution Time
« Reply #1 on: December 07, 2013, 03:42:53 PM »
Off the top of my head I can't tell you why the position would change when adding items. Can you just call UITable.repositionNow = true at the end of the updates?