Skip to content

Commit 3ebb153

Browse files
committed
Ignore mathsize for non-token elements when figuring scales.
1 parent ab3a7e4 commit 3ebb153

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

unpacked/jax/output/HTML-CSS/jax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,8 @@
19151915

19161916
HTMLgetScale: function () {
19171917
if (this.scale) {return this.scale * this.mscale}
1918-
var scale = 1, values = this.getValues("mathsize","scriptlevel","fontsize");
1918+
var scale = 1, values = this.getValues("scriptlevel","fontsize");
1919+
values.mathsize = (this.isToken ? this : this.Parent()).Get("mathsize");
19191920
if (this.style) {
19201921
var span = this.HTMLspanElement();
19211922
if (span.style.fontSize != "") {values.fontsize = span.style.fontSize}

unpacked/jax/output/SVG/jax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,8 @@
12901290
if (this.mscale) {
12911291
scale = this.scale;
12921292
} else {
1293-
var values = this.getValues("mathsize","scriptlevel","fontsize");
1293+
var values = this.getValues("scriptlevel","fontsize");
1294+
values.mathsize = (this.isToken ? this : this.Parent()).Get("mathsize");
12941295
if ((this.styles||{}).fontSize && !values.fontsize) {values.fontsize = this.styles.fontSize}
12951296
if (values.fontsize && !this.mathsize) {values.mathsize = values.fontsize}
12961297
if (values.scriptlevel !== 0) {

0 commit comments

Comments
 (0)