qpixel icon indicating copy to clipboard operation
qpixel copied to clipboard

Odd horizontal scrollbar on paragraphs with math rendering

Open MoshiKoi opened this issue 3 years ago • 1 comments

See this answer on the Math community:

a horizontal scrollbar appears

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.

MoshiKoi avatar May 28 '22 16:05 MoshiKoi

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.

cellio avatar May 30 '22 20:05 cellio

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.

trichoplax avatar Jan 09 '23 05:01 trichoplax