Author Topic: Scrollbar slider/foreground has very limited range  (Read 3311 times)

appminis-mike

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Scrollbar slider/foreground has very limited range
« on: February 18, 2014, 02:05:21 PM »
My scrollbar slider (or foreground) doesn't have the full range of motion of the background. It only moves a tiny bit, relative to the motion of the scroll view it's attached to. It interpolates over that range, but I'd like to move along the full background bar.

See here:



The image on the left is the scroll bar scrolled all the way to the top, and the one on the right is it scrolled all the way down. What I want is for when it is scrolled all the way down is for the slider to be at the bottom of the bar.

How can I get its range of motion to match the background's height?

Thank you.
« Last Edit: February 18, 2014, 02:34:25 PM by appminis-mike »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrollbar slider/foreground has very limited range
« Reply #1 on: February 19, 2014, 12:07:42 PM »
Slider's foreground sprite's dimensions should be what you want them to be. You probably have them set to be a tiny sprite on the top. You need to have them stretch the full dimensions of the background sprite. Look at the example controls that come with NGUI.

appminis-mike

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Scrollbar slider/foreground has very limited range
« Reply #2 on: February 19, 2014, 12:52:03 PM »
That was indeed the case, and it's working properly now. Thank you.