Skip to content
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

Content not scrolling to top #16

Closed
ghost opened this issue Jan 17, 2012 · 2 comments
Closed

Content not scrolling to top #16

ghost opened this issue Jan 17, 2012 · 2 comments

Comments

@ghost
Copy link

ghost commented Jan 17, 2012

I have setup nicescroll and all is working except when the content changes dynamically.

The content div re-sizes the scrollbar changes size but the new content is not reset to the top it stays in the same position I had the previous content scrolled to.

Structure;

I am using .getNiceScroll().resize();

Please help!

@inuyaksa
Copy link
Owner

Set the scroll position to 0 with:
$("your-div").scrollTop(0);

@ghost
Copy link
Author

ghost commented Jan 17, 2012

Ah so easy! Thank you for the great plugin and support!

@ghost ghost closed this as completed Jan 17, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant