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) {
|
adjustChild_scriptlevel: function (n) {
|
||||||
var level = this.Get("scriptlevel");
|
var level = this.Get("scriptlevel");
|
||||||
if (n == this.under && !this.Get("accentunder")) {level++}
|
var force = (this.data[this.base] && !this.Get("displaystyle") &&
|
||||||
if (n == this.over && !this.Get("accent")) {level++}
|
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;
|
return level;
|
||||||
},
|
},
|
||||||
adjustChild_texprimestyle: function (n) {
|
adjustChild_texprimestyle: function (n) {
|
||||||
|
|
|
@ -2207,7 +2207,7 @@
|
||||||
toHTML: function (span,HW,D) {
|
toHTML: function (span,HW,D) {
|
||||||
var values = this.getValues("displaystyle","accent","accentunder","align");
|
var values = this.getValues("displaystyle","accent","accentunder","align");
|
||||||
if (!values.displaystyle && this.data[this.base] != null &&
|
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)}
|
{return MML.msubsup.prototype.toHTML.call(this,span)}
|
||||||
span = this.HTMLcreateSpan(span); var scale = this.HTMLgetScale();
|
span = this.HTMLcreateSpan(span); var scale = this.HTMLgetScale();
|
||||||
var stack = HTMLCSS.createStack(span);
|
var stack = HTMLCSS.createStack(span);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user