mathjax / MathJax-website

The MathJax website
https://www.mathjax.org
22 stars 21 forks source link

Scaling demo sets wrong amount of space #49

Closed dpvc closed 8 years ago

dpvc commented 8 years ago

The rescaling accessibility demo is broken in several ways.

dpvc commented 8 years ago

I suspect that the problem is these lines, inserted to fix the jitter. First of all, this relies on the output being HTML-CSS (since .MathJax_Display is only used for HTML-CSS output), and it should not be necessary of you disable fast-preview, and throttle typesets during slider activity.

dpvc commented 8 years ago

Note also that line 170 probably isn't needed (it is left over from Christian's page, which allowed you to pass the TeX code in the URL, but that makes no sense with this popup window).

Also, line 151 could just be

MathJax.Hub.Queue(['Reprocess', MathJax.Hub, 'output']);

since Reprocess() will look up the elements if an ID is passed.

pkra commented 8 years ago

Thanks! I have to push a couple of fixes; hopefully later this week.