www

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

commit 548eba8ef05df315fd8291869236d4543bc5b20e
parent 0306af85643281e588b686723a8b534a1a0bb1d5
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 18 Mar 2015 10:43:51 -0400

Fix regression where bounding boxes aren't adjusted for mathsize

Diffstat:
Munpacked/jax/output/CommonHTML/jax.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js @@ -1196,7 +1196,10 @@ if (this.removedStyles && this.removedStyles.fontSize && !values.fontsize) values.fontsize = this.removedStyles.fontSize; if (values.fontsize && !this.mathsize) values.mathsize = values.fontsize; - scale *= CHTML.length2em(values.mathsize); + if (values.mathsize !== 1) { + this.CHTML.mscale = CHTML.length2em(values.mathsize); + scale *= this.CHTML.mscale; + } this.CHTML.scale = scale; pscale = this.CHTML.rscale = scale/pscale; if (Math.abs(pscale-1) < .001) pscale = 1; if (node && pscale !== 1) node.style.fontSize = CHTML.Percent(pscale);