www

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

commit ce766620833256511128b61f70d375ab08debfee
parent 74253a955fcf3aa8854d666569f4733bd4da634e
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 13 Sep 2014 15:26:11 -0400

Have zoom box properly sized for tagged equations in NativeMML output.  Resolves issue #918.

Diffstat:
Munpacked/jax/output/NativeMML/jax.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/NativeMML/jax.js b/unpacked/jax/output/NativeMML/jax.js @@ -438,12 +438,12 @@ var mW = math.offsetWidth || math.scrollWidth, mH = math.offsetHeight || math.scrollHeight; var zW = span.offsetWidth, zH = span.offsetHeight; - if (nMML.widthBug) { + if (nMML.widthBug || span.style.width.match(/%/)) { // // FF doesn't get width of <math> right, so get it from <mrow> // var W = span.firstChild.firstChild.scrollWidth; - if (W > zW) {zW = W; span.style.width = zW + "px"} + if (W > zW) {zW = W; span.parentNode.style.width = span.style.minWidth = zW + "px";} } if (this.msieIE8HeightBug) {span.style.position = ""} return {Y:-EVENT.getBBox(span.parentNode).h, mW:mW, mH:mH, zW:zW, zH:zH}