Make SVG output work with discoverability better
This commit is contained in:
parent
88355ecc74
commit
4553cce005
File diff suppressed because one or more lines are too long
|
@ -335,8 +335,15 @@
|
||||||
if (math.parentNode.className === "MathJax_SVG_Display") {math = math.parentNode}
|
if (math.parentNode.className === "MathJax_SVG_Display") {math = math.parentNode}
|
||||||
return HUB.getJaxFor(math.nextSibling);
|
return HUB.getJaxFor(math.nextSibling);
|
||||||
},
|
},
|
||||||
getHoverSpan: function (jax,math) {return math.firstChild}, // check this
|
getHoverSpan: function (jax,math) {
|
||||||
getHoverBBox: function (jax,span,math) {return EVENT.getBBox(span.parentNode)}, // check this
|
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) {
|
Zoom: function (jax,span,math,Mw,Mh) {
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user