MathView icon indicating copy to clipboard operation
MathView copied to clipboard

MathJax: Formular gets rerendered a few times

Open Makman2 opened this issue 9 years ago • 2 comments

When initializing my activity which uses a MathView with MathJax, it renders a few times until the final rendered results is ready. This looks a bit ugly as especially the layout/dimensions of the view do change.

Is there a possibility to wait until the rendering is done completely? Or at least it starts-up empty and renders just once, instead 3-4 times?

Makman2 avatar Jan 15 '17 23:01 Makman2

I am facing this problem too. This issue did not occur with KaTeX, but I have to use MathJax because of its new line and autoscale features.

To solve it I made a temporary fix using visibility attribute of the MathView. I start it with INVISIBLE. When I do calc, I set it to VISIBLE using a handler.postDelayed(3000), i.e., with 3 seconds delayed. But this is not the ideal solution. :(

rafaelpezzuto avatar Jan 29 '17 13:01 rafaelpezzuto

but it's at least a workaround :+1: :)

Makman2 avatar Jan 29 '17 14:01 Makman2