Fix the scriptlevel when munderover has base with movablelimits in non-display mode (reported by Fred)
This commit is contained in:
parent
a6a651c6bd
commit
9c03400d76
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -956,8 +956,10 @@ MathJax.ElementJax.mml.Augment({
|
|||
},
|
||||
adjustChild_scriptlevel: function (n) {
|
||||
var level = this.Get("scriptlevel");
|
||||
if (n == this.under && !this.Get("accentunder")) {level++}
|
||||
if (n == this.over && !this.Get("accent")) {level++}
|
||||
var force = (this.data[this.base] && !this.Get("displaystyle") &&
|
||||
this.data[this.base].CoreMO().Get("movablelimits"));
|
||||
if (n == this.under && (force || !this.Get("accentunder"))) {level++}
|
||||
if (n == this.over && (force || !this.Get("accent"))) {level++}
|
||||
return level;
|
||||
},
|
||||
adjustChild_texprimestyle: function (n) {
|
||||
|
|
|
@ -2207,7 +2207,7 @@
|
|||
toHTML: function (span,HW,D) {
|
||||
var values = this.getValues("displaystyle","accent","accentunder","align");
|
||||
if (!values.displaystyle && this.data[this.base] != null &&
|
||||
this.data[this.base].Get("movablelimits"))
|
||||
this.data[this.base].CoreMO().Get("movablelimits"))
|
||||
{return MML.msubsup.prototype.toHTML.call(this,span)}
|
||||
span = this.HTMLcreateSpan(span); var scale = this.HTMLgetScale();
|
||||
var stack = HTMLCSS.createStack(span);
|
||||
|
|
Loading…
Reference in New Issue
Block a user