Author Topic: Anchor to right edge of a table  (Read 3446 times)

JK

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Anchor to right edge of a table
« on: May 22, 2014, 03:24:13 PM »
Is it possible to anchor a sprite to the right edge of a table? The table is dynamically populated and I'd like to book end the table with some sprites, but the table seems to appear as a point rather than a rectangle to the anchoring system.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Anchor to right edge of a table
« Reply #1 on: May 22, 2014, 04:17:47 PM »
A table script repositions children underneath. You can create an invisible widget (ALT+SHIFT+W) and place UIWrapContents on it, targeting the table. When you repopulate your table, execute the wrap contents script as well so that it resizes the widget. Anchor things to this widget.