Author Topic: Dynamically resizing widget  (Read 3359 times)

appminis-mike

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Dynamically resizing widget
« on: February 16, 2014, 09:59:07 PM »
I have a UIWidget that needs to grow if its children exceed the bounds of its initial size. So if it is 300x300, but the span an area 400 pixels high, I would like the widget to resize itself to 410 or something. Is there a script or a widget available to accomplish such a thing? Or do I need to handle this myself?

Thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Dynamically resizing widget
« Reply #1 on: February 17, 2014, 11:07:47 AM »
NGUITools.Calculate series of function can do the math for you. There is no explicit script that resizes something to envelop the contents.