commit 3ebb1537634d0f703faf40ca82d129bf1613132b
parent ab3a7e429fc661447b76e6addef67e5f99fc4f27
Author: Davide P. Cervone <dpvc@union.edu>
Date: Mon, 5 May 2014 11:18:44 -0400
Ignore mathsize for non-token elements when figuring scales.
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
@@ -1915,7 +1915,8 @@
HTMLgetScale: function () {
if (this.scale) {return this.scale * this.mscale}
- var scale = 1, values = this.getValues("mathsize","scriptlevel","fontsize");
+ var scale = 1, values = this.getValues("scriptlevel","fontsize");
+ values.mathsize = (this.isToken ? this : this.Parent()).Get("mathsize");
if (this.style) {
var span = this.HTMLspanElement();
if (span.style.fontSize != "") {values.fontsize = span.style.fontSize}
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -1290,7 +1290,8 @@
if (this.mscale) {
scale = this.scale;
} else {
- var values = this.getValues("mathsize","scriptlevel","fontsize");
+ var values = this.getValues("scriptlevel","fontsize");
+ values.mathsize = (this.isToken ? this : this.Parent()).Get("mathsize");
if ((this.styles||{}).fontSize && !values.fontsize) {values.fontsize = this.styles.fontSize}
if (values.fontsize && !this.mathsize) {values.mathsize = values.fontsize}
if (values.scriptlevel !== 0) {