Author Topic: Calling Scrollview ResetPosition breaks scrollbars  (Read 3466 times)

DuaneDog

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Calling Scrollview ResetPosition breaks scrollbars
« on: March 05, 2014, 06:45:24 AM »
After populating my scrollview I call Resetposition() to get the scrollview repositioned at the top. However when I do this the scrollbar stops working. If I go into the inspector while the game is still running and move the value slider... then the scroll bar starts working as it should. I've tried using code change the value of the scroll bar right after the resetposition() but it has no effect. Any suggestions?

DuaneDog

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Calling Scrollview ResetPosition breaks scrollbars
« Reply #1 on: March 05, 2014, 07:39:03 AM »
Try calling SetDragAmount instead. Look inside the ResetPosition function for an example -- it uses it as well.