[haiku-development] Re: BScrollView and layouts

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 18 Jan 2017 09:37:53 -0500

On Wed, Jan 18, 2017, at 06:41 AM, Adrien Destugues wrote:

Maybe you need to use SetExplicitMinSize / SetExplicitMaxSize to
constrain the size of the view.
Yeah probably, updating it each time a notification is added/removed.

The default behavior of the scrollbars is to scroll by pixel units. So, a
click on the down arrow (or a mousewheel move) will only scroll by 1
pixel. This is much too slow, usually what is wanted is scrollbing by
about 1 line of text instead. You need to tweak the scrollbar range and
deltas to make this work as expected, overriding the defaults that
BScrollView usually sets for you (which are often not the best choices)
Ah, got it. Is that why I always use the grab bar or page  up/down? 
Maybe subconsciously I knew what works better/faster/more consistently? 
In this case it would make sense to scroll up/down by one notification
at a time.

-Brian

Other related posts: