yads / ngTinyScrollbar

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

QUESTION: auto height #7

Closed paulflo150 closed 9 years ago

paulflo150 commented 9 years ago

Hi, how would you go about making this work with a 100% height? For instance I am trying to use it for a navigation menu, but am not sure how to set it up as it appears to require a fixed height.

Thank you!

yads commented 9 years ago

Unfortunately there is no way out of the box to do that with this plugin. The plugin uses absolute/relative positioning to achieve the scrolling. You could create a directive that figures out the height of the navigation menu, sets the height of the .scroll-viewport element and then calls controller.update() to ensure the content is correctly rendered.