Author Topic: 2 scrollview, only one scrollbar shows  (Read 1964 times)

superp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
2 scrollview, only one scrollbar shows
« on: March 20, 2014, 01:37:30 AM »
Hi,
I created one scrollview and one scrollbar first and tested that it i can scull and scrollbar appears fine.
I duplicated both view and bar on the same scene, updated the 2nd scrollview to use the 2nd scrollbar, but when i drag on an item in the 2nd scrollview and move mouse, the first scrollview and scrollbar moves. the 2nd scrollbar doesn't even appear.
What am i doing wrong?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2 scrollview, only one scrollbar shows
« Reply #1 on: March 20, 2014, 01:59:54 AM »
Double check which scroll bar is being referenced. The only reason this would happen is if you have both scroll views referencing the same scroll bar.

superp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: 2 scrollview, only one scrollbar shows
« Reply #2 on: March 20, 2014, 02:03:15 AM »
I double checked they are using different scroll bars.
It is odd that when i drag the space between items, the right scroll bar and scroll view are moving.
But when i drag item in the 2nd scroll view, it moves the first scrollview/bar.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 2 scrollview, only one scrollbar shows
« Reply #3 on: March 20, 2014, 02:04:03 AM »
UIDragScrollView script references a scroll view.

Check which scroll view is referenced on your background object.

superp

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: 2 scrollview, only one scrollbar shows
« Reply #4 on: March 20, 2014, 02:46:17 AM »
thanks that was it!