Merge branch 'reflow' of https://github.com/dpvc/MathJax into reflow

This commit is contained in:
Sean Hogan 2010-11-22 15:15:59 +11:00
commit 1cfbeaf41d
2 changed files with 9 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -226,6 +226,11 @@
"text-decoration": "none"
},
".MathJax_Processing": {
visibility: "hidden", position:"fixed",
width: 0, height: 0, overflow:"hidden"
},
".MathJax .MathJax_HitBox": {
cursor: "text"
},
@ -2009,7 +2014,7 @@
MML.math.Augment({
toHTML: function (span,node) {
var alttext = this.Get("alttext"); if (alttext) {node.setAttribute("aria-label",alttext)}
var nobr = HTMLCSS.addElement(span,"nobr",{style:{visibility:"hidden"}});
var nobr = HTMLCSS.addElement(span,"nobr",{className:"MathJax_Processing"});
span = this.HTMLcreateSpan(nobr);
var stack = HTMLCSS.createStack(span), box = HTMLCSS.createBox(stack), math;
// Move font-size from outer span to stack to avoid line separation
@ -2058,7 +2063,7 @@
HTMLCSS.Em(HTMLCSS.length2em(values.indentshift));
}
}
nobr.style.visibility = "";
nobr.className = "";
return span;
}
});