Multiplicom / axiom

3 stars 0 forks source link

Auto-hide vertical scroll bar if track-viewer fits viewport (#107) #108

Closed basvandenberg closed 3 years ago

basvandenberg commented 3 years ago

This pull request adds the option to auto-hide the vertical scroll bar for a (y-)scrollable track-viewer, if it fits the viewport.

It adds a scrollAlwaysShown parameter to the enableScrollY function, which is set to true by default:

panel.enableScrollY = function(scrollbarAlwaysShown = true) { 

This corresponds to the current default behaviour, so it doesn't affect existing track viewers.