BasheerSience / BRScrollBar

BRScrollBarView,Draggable Scroll Bar, Draggable Scroll Bar view with label, UiTableView, UIScrollView
75 stars 20 forks source link

ScrollHandle Height #4

Open JPMallow opened 10 years ago

JPMallow commented 10 years ago

How to adjust the height of scroller handle?

BasheerSience commented 10 years ago

Hey JPMallow, Thanks for your question, really appreciated. Unfortunately you can not change the height of the handle, because its size changes automatically, however you can change the value of the minimum height of the handle. To do that open BRScrollHandle.m and change the value for this macro HANDLE_MIN_HEIGHT to whatever you want. Could you provide a good reason why you want to do that, I might update the library to make it change manually if necessary ? Again thanks for your collaboration.

JPMallow commented 10 years ago

Actually we have a requirement that scroll indicator should be displayed in a pop over view whose size pretty low. So if use the height based on some logic, this would not satisfy all the scenarios. So we need to apply the static height for the scroller handle.

Adjusting HANDLE_MIN_HEIGHT constant will not satisfy my requirement as it is already maximum height of 36.

enstulen commented 8 years ago

I would love to be able to set a constant height! :) It doesn't fit the design when there's few elements in the list and scroll indicator is huge. Snapchat has a constant height which works the same way as this control, but looks a lot nicer. Is it still a possibility to update the library?