Ignore mathsize for non-token elements when figuring scales.
This commit is contained in:
parent
ab3a7e429f
commit
3ebb153763
|
@ -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}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user