Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: appminis-mike on February 16, 2014, 09:59:07 PM

Title: Dynamically resizing widget
Post by: appminis-mike 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.
Title: Re: Dynamically resizing widget
Post by: ArenMook 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.