Author Topic: Panel stretch  (Read 3235 times)

Antiloco

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Panel stretch
« 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
« Last Edit: November 13, 2013, 08:29:35 AM by Antiloco »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel stretch
« Reply #1 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.