Skip to content

Commit

Permalink
Fix HTML-CSS bounding boxes for annotation-xml nodes when used illega…
Browse files Browse the repository at this point in the history
…lly as first semantics child.
  • Loading branch information
dpvc committed Apr 13, 2015
1 parent 48b594a commit 55c88eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions unpacked/jax/output/HTML-CSS/autoload/annotation-xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

Expand Down

0 comments on commit 55c88eb

Please sign in to comment.