Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: appminis-mike on February 18, 2014, 02:05:21 PM

Title: Scrollbar slider/foreground has very limited range
Post by: appminis-mike 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:

(http://i.imgur.com/v1SgFyh.png)

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.
Title: Re: Scrollbar slider/foreground has very limited range
Post by: ArenMook 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.
Title: Re: Scrollbar slider/foreground has very limited range
Post by: appminis-mike on February 19, 2014, 12:52:03 PM
That was indeed the case, and it's working properly now. Thank you.