Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Antiloco on November 13, 2013, 08:21:04 AM

Title: Panel stretch
Post by: Antiloco on November 13, 2013, 08:21:04 AM
Hi all,

I'm using ngui UITable script for make an icon grid.
UIGrid is inside a draggable clip panel  that is contained into a sprite window.
Sprite window has pivot point in upper left positon end draggable panel in the center.
When I try to resize window, i need to strech draggable panel bounds into sprite window.
How can i solve this ? i know than panel componet can't change his pivot point.

Thanks
Title: Re: Panel stretch
Post by: ArenMook on November 13, 2013, 03:43:48 PM
Change both to be using a center point, and ideally make that center point match. You can then use UIStretch on one of them to match the other -- for example on the panel to be based on the sprite container. The entire mechanic of specifying clipped regions is being scrapped and will be redone in the next upate.