Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: iHaveReturnd on February 15, 2014, 10:31:07 PM
-
Hello,
I'm putting together a mobile app and while putting in a "drawer" style menu, ran into an issue with the buttons in that panel sometimes not finding the proper resting place after the menu pops in.
90% or so of the time it works perfectly, but the other 10% the buttons move too far, and when you mouse of them, or touch them on a device, they pop back to where they should be, but only the one you clicked/touched, the rest are still in the wrong location until the same is done.
All of those buttons are anchored to the background sprite behind them which moves with the panel as well.
I've attached 3 screenshots as well, the first is the menu popped out properly, the second is the bug, and the third is the bug with me mousing over a couple of buttons to show the staggering.
I really appreciate your help and time on this!
Kyle
-
Is there any way I can reproduce this on my end for me to have a look?
-
I started to type the issue then had a thought about what was wrong. I had forgotten that I had a child panel to the Drawer panel since I used to have a draggable menu in this menu, but now do not.
So there were two UIPanel Objects so hierarchy wise it was UIRoot-> Drawer Panel -> Second Drawer Panel -> Background + buttons
I removed the second drawer panel and moved the buttons to the first and it seems to work now without any issues. Thanks for asking the right question! :D