fast-reflexes / better-react-mathjax

MIT License
124 stars 16 forks source link

<msqrt> Sometimes not display completely #31

Closed kalavaso closed 1 year ago

kalavaso commented 1 year ago

Hi When I try to display some formulas that have an great equation with integrals or divisions, sometimes the √ symbol is displayed incomplete, depend of the size of the window and the zoom. Thk! I use this versions

"react": "^17.0.2" "better-react-mathjax": "^2.0.1"

Some pictures to see the problem

This zoomed in at 80% image

This zoomed in at 100% image

The code: sqrt MathJax.txt

fast-reflexes commented 1 year ago

Hi there!

Could you give me the specifics of the context here? Full MathJax config, which version of MathJax you use, font size of the MathJax content etcetera? I think this is a problem in MathJax itself and thus something that you have to file a ticket about in the MathJax repo.

Here is a sandbox with just pure MathJax and your formula where I can replicate what you're seeing at some zoom levels in Chrome (25%, 400%, 500%). So perhaps if you give me some surrounding context, I can replicate it at your zoom levels too using MathJax only in which case better-react-mathjax is not to blame.

Generally, better-react-mathjax doesn't do much more than just accomodate the use of MathJax in React so intuitively, such a problem as the above is with very high probability the result of the MathJax library itself.

pkra commented 1 year ago

It's likely a browser bugs around zooming & repainting, see https://github.com/mathjax/MathJax/issues?q=is%3Aissue+zoom for many discussions.

fast-reflexes commented 1 year ago

Thanks for chiming in @pkra ! :)

pkra commented 1 year ago

Thanks for chiming in @pkra ! :)

Thank you for maintaining this project!

fast-reflexes commented 1 year ago

Please reopen if you feel that there is anything more to discuss.. As said, I don't think the problem is in this library but instead in MathJax or in browsers themselves.