www

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

commit 5fe727745f123a88da43ea240630ad4fc818b931
parent 2afb80176c0ed5be08efe5babf9b0dbd4835fbf5
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Mon, 10 Feb 2014 08:32:44 -0500

Merge branch 'issue614' into develop.  Issue #614.

Diffstat:
Munpacked/jax/output/SVG/jax.js | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js @@ -1929,6 +1929,17 @@ svg.Add(box); svg.Clean(); this.SVGsaveData(svg); // + // If this element is not the top-level math element + // remove the transform and return the svg object + // (issue #614). + // + if (!span) { + svg.element = svg.element.firstChild; // remove <svg> element + svg.element.removeAttribute("transform"); + svg.removable = true; + return svg; + } + // // Style the <svg> to get the right size and placement // var l = Math.max(-svg.l,0), r = Math.max(svg.r-svg.w,0);