Force Opera to redraw zoomed expressions in SVG output. Resolves issue #309.
This commit is contained in:
parent
0ed5d463e5
commit
27d3b1ea80
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
MathJax.OutputJax.SVG = MathJax.OutputJax({
|
MathJax.OutputJax.SVG = MathJax.OutputJax({
|
||||||
id: "SVG",
|
id: "SVG",
|
||||||
version: "2.0.11",
|
version: "2.0.12",
|
||||||
directory: MathJax.OutputJax.directory + "/SVG",
|
directory: MathJax.OutputJax.directory + "/SVG",
|
||||||
extensionDir: MathJax.OutputJax.extensionDir + "/SVG",
|
extensionDir: MathJax.OutputJax.extensionDir + "/SVG",
|
||||||
autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload",
|
autoloadDir: MathJax.OutputJax.directory + "/SVG/autoload",
|
||||||
|
|
|
@ -386,6 +386,8 @@
|
||||||
emex.parentNode.removeChild(emex);
|
emex.parentNode.removeChild(emex);
|
||||||
|
|
||||||
this.idPostfix = "-zoom"; jax.root.toSVG(span,span); this.idPostfix = "";
|
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
|
// 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 () {
|
HUB.Register.StartupHook("End Cookie", function () {
|
||||||
if (HUB.config.menuSettings.zoom !== "None")
|
if (HUB.config.menuSettings.zoom !== "None")
|
||||||
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}
|
{AJAX.Require("[MathJax]/extensions/MathZoom.js")}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user