Author Topic: How to attach a sprite that will match the size of a label with variable height?  (Read 2106 times)

Prodigga

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 17
    • View Profile
Hey there. I need to create what is essentially a thread of comments (like this forum), where each post has a variable height (determined by the label inside, which is set to 'adjust height' depending on its contents). I also need a sliced sprite for this label as the background, and this sliced sprite needs to match the size of the label + some padding.

Lastly, I need to be able to add these comments as children of a table so that I can reposition the table and order the comments vertically.

I can't seem to get this to work, regardless of how I set my anchors  I always have these problems where the anchors wont 'settle' and theyll slowly crawl off screen.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Don't use anchors. Use UITable.