Fix the scriptlevel when munderover has base with movablelimits in non-display mode (reported by Fred)

This commit is contained in:
Davide P. Cervone 2011-09-21 23:11:03 -04:00
parent a6a651c6bd
commit 9c03400d76
12 changed files with 19 additions and 17 deletions

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

View File

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

View File

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