From de15c6c51477cb97809ea89607b3c95f24319130 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Mon, 29 Apr 2013 14:06:48 -0400 Subject: [PATCH] Fixes to make zoom work properly with expressions that have full width (e.g., tagged equations). --- unpacked/jax/output/HTML-CSS/jax.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index cf3216e71..475008916 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -678,7 +678,8 @@ // // Get height and width of zoomed math and original math // - span.style.position = math.style.position = "absolute"; + 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? @@ -2631,7 +2632,7 @@ // which makes it work even when minimum font size is in effect). // span.style.width = HTMLCSS.Em((Math.round(math.bbox.w*this.em)+.25)/HTMLCSS.outerEm); - span.style.display = "inline-block"; stack.style.width = ""; + span.style.display = "inline-block"; // // Adjust bbox to match outer em-size //