-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Fix horizontal scroll on pages with vertical scroll #52
Conversation
I'm using Here's an example: https://codepen.io/electerious/pen/mdbNwdp (simply replace This sounds so simple, but it seems to be very complex when using |
Thanks for the explaination. I'll look into it |
Could you take a look at this?
On a side note, I see that you are working on the Second side note: I'm not sure if you really work using this coding style (no jsx, module.exports = , require, 'use strict' ), but it makes it fairly difficult to contribute. If you don't use this coding style and are actually generating it with another version of the code, would you mind making it public, giving dev & contribution guidelines ? |
Thanks for the changes. I will take a look at them by time! I somehow still can't believe that there's no simple way to limit the grid size, so I need to give it a try too.
That's ok for now, but develop would be better in the future.
Yes, I'm writing react like this 😃 I might be the only one who likes to use the createElement ( |
Adding Could you give the |
|
Every page that has a vertical scroll also has a small horizontal scroll.
That is because of
width: 100vw;
on the header. Viewport width does not care about scroll bars, so when there are vertical scrollbars the header does not resize and overflows (by 15px on Chrome).Replacing
width: 100vw;
bywidth: 100%;
fixes this issue.