Author Topic: UIScrollbar thumb doesn't go all the way from top to bottom  (Read 1978 times)

Oakshiro

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
UIScrollbar thumb doesn't go all the way from top to bottom
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIScrollbar thumb doesn't go all the way from top to bottom
« Reply #1 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.

Oakshiro

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
    • View Profile
Re: UIScrollbar thumb doesn't go all the way from top to bottom
« Reply #2 on: February 03, 2014, 07:04:10 AM »
Wonderful, thanks!