Horizontal scrollbar on mobile after hiding header when using header.autohide (Linux only)
See original GitHub issueContribution guidelines
- I’ve read the contribution guidelines and wholeheartedly agree
I’ve found a bug and checked that …
- … the problem doesn’t occur with the
mkdocs
orreadthedocs
themes - … the problem persists when all overrides are removed, i.e.
custom_dir
,extra_javascript
andextra_css
- … the documentation does not mention anything about my problem
- … there are no open or closed issues that are related to my problem
Description
I have enabled header.autohide
under features
. Header gets hidden as expected, but horizontal scrollbar appears after that.
Expected behaviour
Horizontal scrollbar should not appear.
Actual behaviour
Horizontal scrollbar appears.
Steps to reproduce
- Enable
header.autohide
underfeatures
. - Open a long page.
- Scroll.
Package versions
- Python: 3.9.2
- MkDocs: 1.2.2
- Material: 7.2.4
Configuration
site_name: Group for apps and services on exascale research infrastructure
site_url: https://group.miletic.net/
theme:
name: material
features:
- header.autohide
System information
- Operating system: Android
- Browser: Latest Firefox and Chrome
I have successfully reproduced it on Chromium 90.0.4430.212 and Brave 1.28.105 on Linux using latest MkDocs version and minimal config posted above. It doesn’t seem to happen in Debian’s Firefox 78.13 ESR.
I’m attaching a recording made in Brave responsive view of the bug appearing on the public version of the docs. The public version is compiled using 7.2.3, but the bug happens in 7.2.4 as mentioned above.
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (15 by maintainers)
Top Results From Across the Web
Hiding the scroll bar on an HTML page - Stack Overflow
The code above "hides" both the horizontal and vertical scrollbars. If you want to hide only the vertical scrollbar, use overflow-y :
Read more >How To Fix Horizontal Scrollbar on Mobile When Using ...
The horizontal scrollbar issue on mobile devices can be fixed by setting overflow to hidden. You can do this by using the Elementor...
Read more >How To Hide Scrollbars With CSS - W3Schools
Learn how to hide scrollbars with CSS. How To Hide Scrollbars. Add overflow: hidden; to hide both the horizontal and vertical scrollbar. Example....
Read more >6 Chromebook Annoyances You Should Fix Right Now
1. Auto-Hiding Scrollbars Doesn't Work ... The latest update of Chrome OS offers a browser "enhancement" that is actally more like a software...
Read more >How do I hide auto horizontal scrollbar from appearing on ...
Hi, I have a horizontal scroll set with Auto on mobile but a scrollbar line appears. How can I hide this scrollbar? Here...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released as part of 7.2.7.
Could you try to delete the
.md-search
element and see whether the error persists without your fix? I suspect this element to be the cause.