artisticat1 / obsidian-latex-suite

Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
MIT License
1.43k stars 56 forks source link

Popup Preview is bugged for large align-like enviroments #296

Open aethnae opened 6 months ago

aethnae commented 6 months ago

Description

When previewing large multi-line equations with the popup preview feature and scrolling down enough, the previewed equation leaves the box that surrounds it, basically floating above the lower bound of the box and the actual LaTeX code.

To Reproduce

  1. Turn on the "Math Popup Preview" feature
  2. Turn on Source Mode
  3. Produce a "long" enough align-enviroment, mine has six rows with \overbrace's above
  4. Scroll down, so the box that surrounds the previewed equation gets cut off at the top of your screen

Expected Behavior

The previewed equation should stay inside the box, and should get cut off the same when scrolling down far enough. If you rely on large multi-line equations, it would probably be better to set the popup preview to render below your LaTeX code, as this weirdly doesn't trigger the bug, even when scrolling up enough.

Additional Info

CleanShot 2024-05-16 at 11 04 21@2x