hashmd icon indicating copy to clipboard operation
hashmd copied to clipboard

Editor overflow caused by Math plugin

Open AnzhiZhang opened this issue 1 year ago • 9 comments

I created a reproduction.

https://stackblitz.com/edit/github-zbspzz?file=app.vue


This only happend in nuxt3. I tried vue3 example in this repo, it works fine.

image

AnzhiZhang avatar Mar 22 '23 00:03 AnzhiZhang

It seems caused by https://github.com/KaTeX/KaTeX/issues/2796

pd4d10 avatar Mar 30 '23 11:03 pd4d10

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar May 30 '23 01:05 github-actions[bot]

ping

AnzhiZhang avatar May 30 '23 10:05 AnzhiZhang

I create a demo to illustrate this problem: https://codepen.io/Punisher-C/pen/KKGLBMP katext-ml is styled with position: absolute without any other position constraint (top, left, ...), which means the elements will display in the same position as the static layout. BUT they don't scroll with the scrollbar.

CPunisher avatar May 30 '23 11:05 CPunisher

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Jul 31 '23 01:07 github-actions[bot]

ping

AnzhiZhang avatar Aug 03 '23 11:08 AnzhiZhang

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Oct 04 '23 01:10 github-actions[bot]

ping

AnzhiZhang avatar Oct 04 '23 07:10 AnzhiZhang

Had the same problem today. This can be fixed by setting position: relative on the element containing the KateX rendering.

Also adding left: -10000px; to .katex .katex-mathml is helpful:

.katex .katex-mathml {
  left: -10000px;
}

eikowagenknecht avatar Feb 28 '24 14:02 eikowagenknecht