-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reinitialize scrollbar on dynamically-added content #68
Comments
check the input events. |
Hi @jkuri thanks for your reply. Apologies if I'm being dense here- I'm still quite new to Angular 2 so possibly I'm missing some fundamentals here... can you elaborate please- are you referring to hooks in the plugin itself (there's nothing about this on the instructions as far as I can see)? |
@InigoWD no problem at all. When you add some content to the div you need to send input event to slimscroll directive so it is aware that content or height has changed and reinitializes bar. Hope this helps you proceed. |
Ah, I see now. Thanks for your help and quick response, much appreciated! :) |
👍 you welcome |
I am facing the similar problem here. Adding content is ok for me so but when I delete content the scroll bar still same length. Till I reach a minimum length It disappear. |
Hi, I discovered this plugin recently ... it's fantastic. |
Hi, thanks for a great little plugin.
In my case I am using on a div which has content added dynamically (and thus the height varies) and so I need to able to reinitialize the scrollbar to fit the new content.
Is it possible to do this? Thanks.
The text was updated successfully, but these errors were encountered: