Author Topic: Scroll View is not working on a modal (Ngui 3.0.7)  (Read 5503 times)

rextr

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Scroll View is not working on a modal (Ngui 3.0.7)
« on: December 07, 2013, 07:02:22 PM »
Hi,

I have a modal background with a big collider to prevent pressing buttons. Then, I open a dialog with a uidrag scroll view over the modal. But, scrolling does not work. I think the problem is related with the depth of my background sprite. When I set its depth to 0 (zero) it works. If it's larger than zero it does not work. I have increased the scrollviews depth big enough, still doesn't work.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scroll View is not working on a modal (Ngui 3.0.7)
« Reply #1 on: December 07, 2013, 08:17:26 PM »
Scroll view panel needs to have a higher depth. Widget depths are relative to the panel now. If two panels share the same depth, one of them is randomly chosen to be in front.

rextr

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Scroll View is not working on a modal (Ngui 3.0.7)
« Reply #2 on: December 08, 2013, 06:02:29 AM »
Thanks. The problem turned out to be my misuse of scroll view. I have solved it by making UIScrollView the child of UIDragScrollView.