Ignore mathsize for non-token elements when figuring scales.

This commit is contained in:
Davide P. Cervone 2014-05-05 11:18:44 -04:00
parent ab3a7e429f
commit 3ebb153763
2 changed files with 4 additions and 2 deletions

View File

@ -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}

View File

@ -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) {