Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Oakshiro on January 30, 2014, 05:47:26 AM

Title: UIScrollbar thumb doesn't go all the way from top to bottom
Post by: Oakshiro on January 30, 2014, 05:47:26 AM
Hi there,

I have created a Scrollview, which has its "Scrollbar" value to a UIScrollbar parent, with this structure...
UIScrollbar (background)
   L... UIWidget (foreground)
   L... UISprite (Thumb)

If the contents of the ScrollView are big enough, the thumb goes correctly from top to bottom of the bar, but when it is not the thumb is not going correctly from top to bottom.
I realised the problem comes because the thumb is Anchored to the Foreground widget, and the widget is being scaled depending on the size of the contents of the scrollview, so it "hits" the boundaries of the background and doesn't allow the thumb to go further.

I also realised there is a UISlider component that could match better my needs, but Scrollview class doesn't allow to send a UISlider as the scrollbar parameter...

How could i fix this?

Thanks!
PS: i send a screenshot to better explain it
Title: Re: UIScrollbar thumb doesn't go all the way from top to bottom
Post by: ArenMook on January 30, 2014, 11:36:29 AM
I'll just make it possible to use the generic "progress bar" class in the Scroll View instead. This way you will be able to select sliders as well.
Title: Re: UIScrollbar thumb doesn't go all the way from top to bottom
Post by: Oakshiro on February 03, 2014, 07:04:10 AM
Wonderful, thanks!