www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ed85cf61ee8fa9493e7f2493f242403dc09c77c3
parent ad6660252955d5b885c6299f3ba7300493df82c2
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 18 Mar 2015 13:04:52 -0400

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

Diffstat:
Munpacked/jax/output/HTML-CSS/autoload/annotation-xml.js | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/unpacked/jax/output/HTML-CSS/autoload/annotation-xml.js b/unpacked/jax/output/HTML-CSS/autoload/annotation-xml.js @@ -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; } });