From 5c39699371a139371b8009367a14fea257a449f5 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 18 Apr 2013 17:11:47 -0400 Subject: [PATCH] Make sure textSVG is attached during zooming (prevents error when math contains characters outside of the MathJax fonts). Resolves issue #441. --- unpacked/jax/output/SVG/config.js | 2 +- unpacked/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 index 9c122abfc..3d5bb3272 100644 --- 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 index 3362cfc1d..8b16a4d97 100644 --- 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)} //