Skip to content

Commit 27d3b1e

Browse files
committed
Force Opera to redraw zoomed expressions in SVG output. Resolves issue #309.
1 parent 0ed5d46 commit 27d3b1e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

unpacked/jax/output/SVG/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
MathJax.OutputJax.SVG = MathJax.OutputJax({
2626
id: "SVG",
27-
version: "2.0.11",
27+
version: "2.0.12",
2828
directory: MathJax.OutputJax.directory + "/SVG",
2929
extensionDir: MathJax.OutputJax.extensionDir + "/SVG",
3030
autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload",

unpacked/jax/output/SVG/jax.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@
386386
emex.parentNode.removeChild(emex);
387387

388388
this.idPostfix = "-zoom"; jax.root.toSVG(span,span); this.idPostfix = "";
389+
if (this.operaZoomRefresh)
390+
{setTimeout(function () {span.firstChild.style.border="1px solid transparent"},1)}
389391
//
390392
// Get height and width of zoomed math and original math
391393
//
@@ -1960,6 +1962,14 @@
19601962
});
19611963
});
19621964

1965+
HUB.Browser.Select({
1966+
Opera: function (browser) {
1967+
SVG.Augment({
1968+
operaZoomRefresh: true // Opera needs a kick to redraw zoomed equations
1969+
});
1970+
}
1971+
});
1972+
19631973
HUB.Register.StartupHook("End Cookie", function () {
19641974
if (HUB.config.menuSettings.zoom !== "None")
19651975
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}

0 commit comments

Comments
 (0)