Fix HTML-CSS bounding boxes for annotation-xml nodes when used illegally as first semantics child.

This commit is contained in:
Davide P. Cervone 2015-03-18 13:04:52 -04:00
parent 48b594afce
commit 55c88eb608

View File

@ -48,9 +48,11 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
toHTML: function (span,encoding) {
for (var i = 0, m = this.data.length; i < m; i++)
{span.appendChild(this.data[i].cloneNode(true))}
span.bbox.w = HTMLCSS.getW(span); span.bbox.rw = span.bbox.w;
var bbox = span.bbox; span.bbox = null;
bbox.rw = bbox.w = HTMLCSS.getW(span);
var HD = HTMLCSS.getHD(span);
span.bbox.h = HD.h; span.bbox.d = HD.d;
bbox.h = HD.h; bbox.d = HD.d;
span.bbox = bbox;
}
});