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.

Vertical scrollbars on MathJax formulas in material version 6.1.7

See original GitHub issue

I’ve found a bug and checked that …

  • … the problem doesn’t occur with the default MkDocs template
  • … the problem is not in any of my customizations (CSS, JS, template)
  • … the documentation does not mention anything about my problem
  • … there are no open or closed issues that are related to my problem

Description

The following formula shows a vertical scrollbar using MathJax. I know there exist other related issues to this (for example: #2048 and #484) which solve this but the problem seems to be still there:

$$
v_i = \frac{\Delta s_i}{\Delta t_i}
$$

image image

You can find the documentation where this happens hostet here using github-pages: https://fjp.at/diffbot/theory/motion-and-odometry/#distance-velocity-and-time

I tested locally with the default mkdocs theme and there it works, no scrollbars appear.

I am using a custom_dir for the required javascript and added arithmatex in my mkdocs.yml

Expected behavior

No vertical scrollbars on mathjax formulas

Package versions

  • Python: python --version: 3.8.5
  • MkDocs: mkdocs --version: 1.1.2 from /home/fjp/.local/lib/python3.8/site-packages/mkdocs (Python 3.8)
  • Material: pip show mkdocs-material | grep -E ^Version: 6.1.7

Project configuration

theme:
  name: material
  highlightjs: true
  custom_dir: docs/custom_theme

markdown_extensions:
  - admonition
  - pymdownx.arithmatex:
      generic: true

System information

  • OS: Ubuntu 20.04

  • Browser: Tested with Chromium, Chrome, Firefox

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Dec 22, 2020

Yes, it will be part of 6.2.3. I issued three releases today, including the all-new navigation stuff from Insiders, so I suggest we wait for a little and let things cool down, and include some bugfixes for issues that might be the result of the latest changes.

Give it a few days.

1reaction
squidfunkcommented, Dec 22, 2020

Ha! I managed to reproduce it, I should have used your example from the start 🤦‍♂️ So it seems it doesn’t happen with the examples used in the official docs, but the formula needs to have a certain height, so the overflow is triggered.

However, I was finally able to test my fix, and it seems to get rid of the issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vertical scrollbars on MathJax formulas in material version 6.1.7
Vertical scrollbars on MathJax formulas in material version 6.1.7 ... I've found a bug and checked that ... [x] ... the problem doesn't...
Read more >
Changelog - Material for MkDocs - GitHub Pages
Bumped MkDocs version to 1.3.0 to mitigate breaking changes in Jinja; Reverted Jinja version range ... Fixed #3354: MathJax formulas show vertical scrollbar...
Read more >
MathJax Documentation - Read the Docs
MathJax allows page authors to write formulas using TeX and LaTeX notation, MathML (a World Wide Web Consortium stan- dard for representing ...
Read more >
Add a horizontal scrollbar to MathJax formula blocks
A fix for this is now live. Mathjax tables should now get a horizontal scrollbar when they overflow their assigned width.
Read more >
v3.1-latest PDF - MathJax Documentation
Version 3.0 of MathJax is a complete rewrite of MathJax from the ground up, ... allows page authors to write formulas using TeX...
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