Make mtd not measure stretched operators twice

This commit is contained in:
Davide P. Cervone 2011-09-06 00:23:48 -04:00
parent 54bb4574ed
commit 66be7cd2f7
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -418,9 +418,10 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
toHTML: function (span,HW,D) {
span = this.HTMLcreateSpan(span);
if (this.data[0]) {
var box = HTMLCSS.Measured(this.data[0].toHTML(span),span);
var box = this.data[0].toHTML(span);
if (D != null) {HTMLCSS.Remeasured(this.data[0].HTMLstretchV(span,HW,D),span)}
else if (HW != null) {HTMLCSS.Remeasured(this.data[0].HTMLstretchH(span,HW),span)}
else {HTMLCSS.Measured(box,span)}
span.bbox = box.bbox;
}
this.HTMLhandleSpace(span);