www

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

commit 5c39699371a139371b8009367a14fea257a449f5
parent c4da088220929b63af5e36915f1225d24706df14
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Thu, 18 Apr 2013 17:11:47 -0400

Make sure textSVG is attached during zooming (prevents error when math contains characters outside of the MathJax fonts).  Resolves issue #441.

Diffstat:
Munpacked/jax/output/SVG/config.js | 2+-
Munpacked/jax/output/SVG/jax.js | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/unpacked/jax/output/SVG/config.js b/unpacked/jax/output/SVG/config.js @@ -24,7 +24,7 @@ MathJax.OutputJax.SVG = MathJax.OutputJax({ id: "SVG", - version: "2.1.1", + version: "2.1.2", directory: MathJax.OutputJax.directory + "/SVG", extensionDir: MathJax.OutputJax.extensionDir + "/SVG", autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload", diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js @@ -387,7 +387,11 @@ this.cwidth = .85*SVG.defaultWidth; emex.parentNode.removeChild(emex); + span.appendChild(this.textSVG); + this.mathDIV = span; this.idPostfix = "-zoom"; jax.root.toSVG(span,span); this.idPostfix = ""; + span.removeChild(this.textSVG); + if (this.operaZoomRefresh) {setTimeout(function () {span.firstChild.style.border="1px solid transparent"},1)} //