Author Topic: How to limit scrollview contents to panel  (Read 4535 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
How to limit scrollview contents to panel
« on: January 02, 2016, 02:47:28 PM »
I have a scrollable list of a league table results. I want it to stop at the top on the first item, and at the bottom on the last item, rather than everything stopping at the centre. ie. With a list of 50 items and room to show 20, scrolling the list to the top shows items 1 - 20 filling the view, and scrolling all the way down shows items 3-50 filling the view.

Is this possible?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to limit scrollview contents to panel
« Reply #1 on: January 05, 2016, 06:50:26 AM »
I'm going to fill in the blanks here... 3-50 means 30-50, and you are using CenterOnChild? The way that script works is it centers on a child object, predictably. Get rid of that script and the scroll view will work exactly as you want.