qpixel
qpixel copied to clipboard
Odd horizontal scrollbar on paragraphs with math rendering
See this answer on the Math community:

A horizontal scrollbar appears instead of it being word-wrapped.
What differentiates this from other long equations with horizontal scroll is that the equations themselves aren't especially wide; instead, it is an issue of them being improperly wrapped.
This seems to be a function of viewport size and/or zoom. I didn't see it at my default size/scale (in Chrome), but when I zoomed I started to see scrollbars on each paragraph that includes inline math.
Extra info following this being raised again on Mathematics Meta:
- I've posted an answer there to say I do not see the horizontal scroll bar at any zoom level in Firefox, so maybe this is specific to Chrome / Chromium based browsers?
- There is a comment from the affected user explaining that if the end of the inline MathJax is moved slightly left or right then the wrapping occurs correctly and there is no horizontal scrollbar. So it sounds like there may be only a narrow mismatch between the threshold for wrapping and the threshold for scrolling:
Yes. Adding more text will push the mentioned expression down to the next line. If I change the expression to $f(x,0)$ [slightly shorter rendered MathJax], then the scroll bar disappears.