From 04dfed57fd70c1712550c50f2b8c0fc38519dfd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BC=BA?= Date: Sat, 9 Mar 2019 19:54:55 +0800 Subject: [PATCH] Fix for mathjax overflow problem(issue #645) also prevent unexpected scroll bar(issue #658) --- layout/_third-party/math/mathjax.swig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/layout/_third-party/math/mathjax.swig b/layout/_third-party/math/mathjax.swig index 1a7b3df136..1b12c88d7a 100644 --- a/layout/_third-party/math/mathjax.swig +++ b/layout/_third-party/math/mathjax.swig @@ -33,15 +33,19 @@ MathJax.Hub.Queue(function() { var all = MathJax.Hub.getAllJax(), i; for (i = 0; i < all.length; i += 1) { - all[i].SourceElement().parentNode.className += ' has-jax'; + document.getElementById(all[i].inputID + '-Frame').parentNode.className += ' has-jax'; } });