question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Horizontal scrollbar on mobile after hiding header when using header.autohide (Linux only)

See original GitHub issue

Contribution guidelines

I’ve found a bug and checked that …

  • … the problem doesn’t occur with the mkdocs or readthedocs themes
  • … the problem persists when all overrides are removed, i.e. custom_dir, extra_javascript and extra_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

  1. Enable header.autohide under features.
  2. Open a long page.
  3. 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:closed
  • Created 2 years ago
  • Comments:20 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Sep 19, 2021

Released as part of 7.2.7.

1reaction
squidfunkcommented, Aug 17, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found