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

Scrolling not going up #104

Open
TonyDC opened this issue Jun 17, 2017 · 1 comment
Open

Scrolling not going up #104

TonyDC opened this issue Jun 17, 2017 · 1 comment

Comments

@TonyDC
Copy link
Owner

TonyDC commented Jun 17, 2017

When moving to a new page, react-router does not scroll up the page.

Possible solution:

componentDidMount () {
  window.scrollTo(0, 0)
}
@TonyDC
Copy link
Owner Author

TonyDC commented Jun 21, 2017

Change the following in app.scss (semantically, it is the correct way to have the components - background color correction required):

.fill-remaining {
        flex: 1;
->    overflow: scroll;
}

Also, with this correction, the navbar always stays on top of the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant