yads / ngTinyScrollbar

An angular directive port of the TinyScrollbar
MIT License
55 stars 20 forks source link

Margin on the scrollbar #10

Open solenoo opened 9 years ago

solenoo commented 9 years ago

I think this plugin should have the option of setting margin on scrollbar and by that I mean letting the user choose where does he want his scrollbar to start. For instance if you have a content with no padding on top and bottom you would like to have a way to set your scrollbar to start at 15px from the top. And the value that's adde will be subtracted from the scroll-thumb calculated height.

yads commented 9 years ago

You should be able to set your css for that element's .scroll-overview

solenoo commented 9 years ago

@yads No I'm not talking about that, look here how this plugin has a trackMargin option -> http://formstone.it/components/Scroller/demo/index.html. You should add this option as well.

yads commented 9 years ago

Will consider for future enhancement, but am always willing to take a pull request.