Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Zophiel on May 09, 2013, 02:21:20 PM

Title: Grid contents slide down a little when interacting 
Post by: Zophiel on May 09, 2013, 02:21:20 PM
Hello,

I have several scroll views, all setup the same. I fill the grid dynamically with sprites and use .Reposition() when i'm done adding to sort them. Something happend recently in the project in some of the views that if you click in the view, the grid floats down a few pixels.

Without posting all the code, anyone have any inkling of an idea as to why? Grid cells are 150 x 200 and the sprite inside it is 88 x 88.
Title: Re: Grid contents slide down a little when interacting 
Post by: ArenMook on May 10, 2013, 12:28:04 AM
Add the sprites at edit time, then hit the "Reposition Clipping" checkbox on the UIDraggablePanel. Now delete the sprites. Now hit Play.
Title: Re: Grid contents slide down a little when interacting 
Post by: Zophiel on May 10, 2013, 10:57:18 AM
Awesome, thank you!