Make SVG output work with discoverability better

This commit is contained in:
Davide P. Cervone 2011-11-18 10:11:38 -05:00
parent 88355ecc74
commit 4553cce005
2 changed files with 10 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -335,8 +335,15 @@
if (math.parentNode.className === "MathJax_SVG_Display") {math = math.parentNode}
return HUB.getJaxFor(math.nextSibling);
},
getHoverSpan: function (jax,math) {return math.firstChild}, // check this
getHoverBBox: function (jax,span,math) {return EVENT.getBBox(span.parentNode)}, // check this
getHoverSpan: function (jax,math) {
math.style.position = "relative"; // make sure inline containers have position set
return math.firstChild;
},
getHoverBBox: function (jax,span,math) {
var bbox = EVENT.getBBox(span.parentNode);
bbox.h += 2; bbox.d -= 2; // bbox seems to be a bit off, so compensate (FIXME)
return bbox;
},
Zoom: function (jax,span,math,Mw,Mh) {
//