From 9d8c48ec51b2534dbbd632b66301b60b51895237 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 18 Feb 2015 17:26:00 -0500 Subject: [PATCH] Fix zooming in CommonHTML. --- unpacked/jax/output/CommonHTML/jax.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index d110e1353..94922612d 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -77,7 +77,7 @@ }, ".MJXc-math span": {"display": "inline-block"}, ".MJXc-box": {"display":"block!important", "text-align": "center"}, - ".MJXc-box:after": {"content": '" "'}, // needed for when there is no DOCTYPE +// ".MJXc-box:after": {"content": '" "'}, // needed for when there is no DOCTYPE ".MJXc-rule": {"display":"block!important", "margin-top":".1em"}, ".MJXc-char": {"display":"block!important"}, @@ -358,12 +358,11 @@ // Re-render at larger size // span.className = "MathJax"; - this.idPostfix = "-zoom"; jax.root.toCHTML(span,span); this.idPostfix = ""; + this.idPostfix = "-zoom"; jax.root.toCommonHTML(span,span); this.idPostfix = ""; // // Get height and width of zoomed math and original math // span.style.position = "absolute"; - if (!width) {math.style.position = "absolute"} var zW = span.offsetWidth, zH = span.offsetHeight, mH = math.offsetHeight, mW = math.offsetWidth; if (mW === 0) {mW = math.parentNode.offsetWidth}; // IE7 gets mW == 0?