ziscloud / angular-slimscroll

angular directive for jquery slimscroll
MIT License
63 stars 31 forks source link

Slimscroll's height does not adjust on window resizing #7

Closed jagmal closed 9 years ago

jagmal commented 10 years ago

Slimscroll's height does not adjust on window resizing. Is there something that I am missing or is it not supported? If later, can it be fixed?

jagmal commented 10 years ago

I have found a way around by emitting an event on window resize inside my controller and watching the same event using "slimscrollListenTo" attr. Even there, I had a problem on angular 1.3 where I had to use "slimscroll-listen-to" as attr in the html using

was not working because $attr.slimscrollListenTo was not available inside directive. Instead, $attr.slimscrolllistento was being passed.

Hope it helps others.

ziscloud commented 9 years ago

@jagmal thanks for your share. Currently the $attr.slimscrollListenTo is processed in our directive, but you pass the attribute value use 'slimscroll-listen-to', angular removes the dashs between the words, so in the directive $attr.slimscrolllistento is passed in.

jagmal commented 9 years ago

Thanks for fixing this!

immortalcy commented 9 years ago

could you provide a working example on this matter?

nicolaib commented 7 years ago

I'm also looking for an example. Can anyone show how to add this attribute to the HTML (I suppose)? Thanks.