Force Opera to redraw zoomed expressions in SVG output. Resolves issue #309.

This commit is contained in:
Davide P. Cervone 2012-09-08 11:14:06 -04:00
parent 0ed5d463e5
commit 27d3b1ea80
2 changed files with 11 additions and 1 deletions

View File

@ -24,7 +24,7 @@
MathJax.OutputJax.SVG = MathJax.OutputJax({
id: "SVG",
version: "2.0.11",
version: "2.0.12",
directory: MathJax.OutputJax.directory + "/SVG",
extensionDir: MathJax.OutputJax.extensionDir + "/SVG",
autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload",

View File

@ -386,6 +386,8 @@
emex.parentNode.removeChild(emex);
this.idPostfix = "-zoom"; jax.root.toSVG(span,span); this.idPostfix = "";
if (this.operaZoomRefresh)
{setTimeout(function () {span.firstChild.style.border="1px solid transparent"},1)}
//
// Get height and width of zoomed math and original math
//
@ -1960,6 +1962,14 @@
});
});
HUB.Browser.Select({
Opera: function (browser) {
SVG.Augment({
operaZoomRefresh: true // Opera needs a kick to redraw zoomed equations
});
}
});
HUB.Register.StartupHook("End Cookie", function () {
if (HUB.config.menuSettings.zoom !== "None")
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}