Author Topic: UITable.Reposition() problem  (Read 1625 times)

Razacx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
UITable.Reposition() problem
« on: May 29, 2014, 12:30:31 PM »
Hello,

I recently encountered a problem with UITable.Reposition()
My script removes children from the table and then uses this method,
however, when it's used, the horizontal size of the UITable object is changed. I do not want this to happen because it also affects the spacing between the remaining elements. Is there any way to solve this issue?
Any answers are very much appreciated.

Thanks in advance.

Razacx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UITable.Reposition() problem
« Reply #1 on: May 29, 2014, 01:43:18 PM »
Nevermind it :p I found a solution already.
It seems like the reposition method takes in account the sizes of all object within the table.
What I did is give every element in the table a child, which is a transparent sprite with a fixed size.
This way, the padding between the objects remains.