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

Does not scroll overflow parent other than body #18

Open
jsgoupil opened this issue Apr 5, 2017 · 0 comments
Open

Does not scroll overflow parent other than body #18

jsgoupil opened this issue Apr 5, 2017 · 0 comments

Comments

@jsgoupil
Copy link

jsgoupil commented Apr 5, 2017

setScrollTop(this.body);
setScrollTop(this.document.documentElement);
setScrollTop(this.document.body.parentNode);

This is clever, however, it does not work if my container is not the body.
My app is basically "left menu"/"content page"... the content page will scroll, the body will never scroll.

It is quite complicated to find out which container(s) should scroll, so there should be a parameter to be set.

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