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

Remove vertical scrollbar on short pages #495

Closed
AndreWin opened this issue Oct 14, 2017 · 6 comments
Closed

Remove vertical scrollbar on short pages #495

AndreWin opened this issue Oct 14, 2017 · 6 comments
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open

Comments

@AndreWin
Copy link

Hello.

There are vertical scrollbar on the right when I see these pages.

I found that height(.md-container) + 1 px = height(.md-container .md-main) +
height(.md-container .md-footer).

How can I fix this?

Best regards,
Andrey.

@AndreWin
Copy link
Author

When I make height of .md-container less on 1 px, this hide scrollbar.

@AndreWin
Copy link
Author

The only fix I found: .md-container {height: 99.9%}.

@squidfunk
Copy link
Owner

The pixel is added to induce margin collapse. It's a compromise, see:

https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/layout/_base.scss#L117-L120

I'm searching for another solution, but haven't found one so far.

@AndreWin
Copy link
Author

Thank you very much for this fix, @squidfunk!

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Oct 16, 2017
@squidfunk squidfunk changed the title Vertical scrollbar Remove vertical scrollbar on short pages Oct 16, 2017
@squidfunk
Copy link
Owner

Fixed in #501

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Oct 18, 2017
@squidfunk
Copy link
Owner

Released with 1.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants