Mark SVG spans as MathJax ones properly.

This commit is contained in:
Davide P. Cervone 2014-06-24 16:40:52 -04:00
parent 12313a6629
commit d06675ae89

View File

@ -2059,9 +2059,9 @@
if (svg.H > svg.h || svg.D > svg.d) {
var frame = HTML.Element(
"span",{style: {display:"inline-block", "white-space":"nowrap", padding:"1px 0px"}, isMathJax:true},[[
"span",{style: {display:"inline-block", position:"relative", isMathJax:true,
"span",{style: {display:"inline-block", position:"relative",
width:SVG.Ex(svg.w), height:SVG.Ex(svg.h+svg.d),
"vertical-align":SVG.Ex(-svg.d)}}]]);
"vertical-align":SVG.Ex(-svg.d)}, isMathJax:true}]]);
frame.firstChild.appendChild(svg.element); svg.element = frame;
style.verticalAlign = style.margin = ""; style.position = "absolute";
style.bottom = SVG.Ex(svg.d-svg.D); style.left = 0;