Author Topic: ScrollPanel only Snaps to the right position after first drag  (Read 2855 times)

Der_Kevin

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 10
    • View Profile
ScrollPanel only Snaps to the right position after first drag
« on: September 07, 2014, 07:57:53 AM »
Hey,

I have a weird Bug with NGUI. I wanted to create a Horizontal Scroll Panel where you can select some Buildings/Items/Objects.
I let the panel fade in from the bottom but somehow the first item is the middle.. or almost in the middle and not on the left side as it should. when i drag the scroll panel just a little bit to the left or to the right, it snaps to the right position (to the left side of the screen). Everything else from this Panel is on the right position (Tabs and close button for example)

I don't really know which value is responsable for that so i dont know which values i should post here. maybe some of you knows whats wrong or had this before.
feel free to ask me if you want to know which settings i used on a specific point

Cheers,
Kevin

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ScrollPanel only Snaps to the right position after first drag
« Reply #1 on: September 07, 2014, 08:50:08 AM »
How do you fade in the panel? How and when do you populate its content? Post some code too, that may help.