Author Topic: Intermittent Bug When Moving UI Panel  (Read 3904 times)

iHaveReturnd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Intermittent Bug When Moving UI Panel
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Intermittent Bug When Moving UI Panel
« Reply #1 on: February 16, 2014, 02:51:45 AM »
Is there any way I can reproduce this on my end for me to have a look?

iHaveReturnd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Intermittent Bug When Moving UI Panel
« Reply #2 on: February 16, 2014, 12:07:54 PM »
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