Skip to content

A displayed formula scrolls inside its own box - #49

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
formulas-scroll
Oct 25, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
formulas-scroll

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Try online's LaTeX example renders as a displayed formula 272px wide. At 320px, a desktop window at 400% zoom, it reached 18px past the window's right edge, where the body's overflow-x: hidden cuts it off. A displayed formula (mjx-container[display="true"]) now scrolls sideways inside its own box when it does not fit.

overflow-y: hidden stops the box from also growing a vertical scrollbar. On its own, it cut the bottom pixel row off the closing parenthesis of f(x), whose ink reaches below the box MathJax gives it. One pixel of padding keeps that row.

Built locally and measured in headless Chromium:

  • at 320px the formula no longer reaches past the window;
  • at 1280px Try online renders pixel for pixel as before down to the bottom of the formula, and the page is one pixel taller.

Try online is the only page with a displayed formula.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Try online's LaTeX example is 272px wide, and at 320px it reached 18px past the window's right edge, where the body's overflow-x: hidden cuts it off. A displayed formula now scrolls sideways inside its own box when it does not fit.

overflow-y: hidden keeps that box from also growing a vertical scrollbar, and on its own it cut the bottom pixel row off the closing parenthesis of f(x), whose ink reaches below the box MathJax gives it. One pixel of padding keeps it: at 1280px Try online renders pixel for pixel as before down to the formula, and is one pixel taller.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet moved this from Todo to In review in AngouriMath Oct 25, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit 5a05a95 into master Oct 25, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AngouriMath Oct 25, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the formulas-scroll branch October 25, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant