From 548eba8ef05df315fd8291869236d4543bc5b20e Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Wed, 18 Mar 2015 10:43:51 -0400 Subject: [PATCH] Fix regression where bounding boxes aren't adjusted for mathsize --- unpacked/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 index 3dfccfc3a..97e5953dd 100644 --- 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);