www

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

commit a4872ff48d9da4c4cd24c3a04a0b506d08e3c52b
parent e24c7996fe2af3fb0ed9bebde9c89f3d6c7122b5
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 18 Mar 2015 17:19:59 -0400

Handle HoverBBox (modulo getting em size mesurements)

Diffstat:
Munpacked/jax/output/CommonHTML/jax.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js @@ -365,9 +365,9 @@ }, getHoverSpan: function (jax,math) {return jax.root.CHTMLnodeElement()}, getHoverBBox: function (jax,span,math) { -// var bbox = span.CHTML, em = jax.CHTML.outerEm; -// var BBOX = {w:bbox.w*em, h:bbox.h*em, d:bbox.d*em}; -// if (bbox.width) {BBOX.width = bbox.width} + var bbox = jax.root.CHTML, em = CHTML.em; //jax.CHTML.outerEm; + var BBOX = {w:bbox.w*em, h:bbox.h*em, d:bbox.d*em}; + if (bbox.width) {BBOX.width = bbox.width} return BBOX; },