Author Topic: UITable as a child of another UITable  (Read 1259 times)

Shorinji

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
UITable as a child of another UITable
« on: March 07, 2014, 04:41:21 PM »
Hi,
I have a UITable which has another UITable as children.
When i reposition the parent UITable (after repositionning the child UITable), the looks of the result is like if the child UITable's width was 0, and the child UITable will not be properly centered.
If I replace the child UITable with a UIGrid, the result seems correct.
Could you please let me know if there is a way to correct this behavior?
Also, is there any guarantee that the children will be updated before the parents in NGUI?
Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITable as a child of another UITable
« Reply #1 on: March 08, 2014, 12:49:12 PM »
Tables are not meant to be nested. If you do nest them, you somehow have to make sure that the inner table gets updated before the outer table.