www

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

commit ca6ffc7b41dd964eb5044c448f6024b82ef05c5c
parent a154d7ded16eb9b33f721426ba846984d1d75123
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 29 Jun 2015 09:54:37 -0400

Use scale of 1 if bbox.scale is not set (affects fractions, for example).  Resolves issue #1072.

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

diff --git a/unpacked/jax/output/HTML-CSS/autoload/mmultiscripts.js b/unpacked/jax/output/HTML-CSS/autoload/mmultiscripts.js @@ -137,14 +137,14 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { var w = box[k+1].bbox.w - box[k].bbox.w; if (w > 0) { if (isPre) { - box[k].style.paddingLeft = HTMLCSS.Em(w/box[k].scale); + box[k].style.paddingLeft = HTMLCSS.Em(w/(box[k].scale||1)); BOX[k].w += w; } else { HTMLCSS.createBlank(sub,w); } } else if (w < 0) { if (isPre) { - box[k+1].style.paddingLeft = HTMLCSS.Em(-w/box[k+1].scale); + box[k+1].style.paddingLeft = HTMLCSS.Em(-w/(box[k+1].scale||1)); BOX[k+1].w += -w; } else { HTMLCSS.createBlank(sup,-w);