Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor overflow caused by Math plugin #285

Open
AnzhiZhang opened this issue Mar 22, 2023 · 9 comments
Open

Editor overflow caused by Math plugin #285

AnzhiZhang opened this issue Mar 22, 2023 · 9 comments
Labels
upstream Waiting for upstream fix

Comments

@AnzhiZhang
Copy link
Contributor

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

@pd4d10
Copy link
Owner

pd4d10 commented Mar 30, 2023

It seems caused by KaTeX/KaTeX#2796

@pd4d10 pd4d10 changed the title Editor overflow and created scrollbar to its parent Editor overflow caused by Math plugin Mar 30, 2023
@pd4d10 pd4d10 added the upstream Waiting for upstream fix label Mar 30, 2023
@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale label May 30, 2023
@AnzhiZhang
Copy link
Contributor Author

ping

@CPunisher
Copy link
Contributor

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.

@github-actions github-actions bot removed the stale label May 31, 2023
@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the stale label Jul 31, 2023
@AnzhiZhang
Copy link
Contributor Author

ping

@github-actions github-actions bot removed the stale label Aug 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

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

@github-actions github-actions bot added the stale label Oct 4, 2023
@AnzhiZhang
Copy link
Contributor Author

ping

@github-actions github-actions bot removed the stale label Oct 5, 2023
@eikowagenknecht
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Waiting for upstream fix
Projects
None yet
Development

No branches or pull requests

4 participants