www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit de15c6c51477cb97809ea89607b3c95f24319130
parent d6b6aa811190ccb1ce48b55e1e869af67c6fcaa8
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 29 Apr 2013 14:06:48 -0400

Fixes to make zoom work properly with expressions that have full width (e.g., tagged equations).

Diffstat:
Munpacked/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 @@ -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 //