Add more tests to check that the math is still in the page. Should resolve issue #730 (though we don't have their page and can't really test it).
This commit is contained in:
parent
67ee149dd2
commit
3b35ca9e16
|
@ -579,7 +579,8 @@
|
|||
//
|
||||
var jax = script.MathJax.elementJax, math = jax.root,
|
||||
span = document.getElementById(jax.inputID+"-Frame"),
|
||||
div = (jax.HTMLCSS.display ? span.parentNode : span);
|
||||
div = (jax.HTMLCSS.display ? (span||{}).parentNode : span);
|
||||
if (!span || !div) return;
|
||||
//
|
||||
// Set the font metrics
|
||||
//
|
||||
|
|
|
@ -286,8 +286,8 @@
|
|||
// Get the jax and the container and set the size
|
||||
//
|
||||
var jax = script.MathJax.elementJax, math = jax.root;
|
||||
var span = document.getElementById(jax.inputID+"-Frame"),
|
||||
container = span.firstChild, mspan = container.firstChild;
|
||||
var span = document.getElementById(jax.inputID+"-Frame"); if (!span) return;
|
||||
var container = span.firstChild, mspan = container.firstChild;
|
||||
this.ex = jax.NativeMML.ex || this.defaultEx;
|
||||
this.scale = jax.NativeMML.scale || 1;
|
||||
if (this.scale !== 1) {span.style.fontSize = jax.NativeMML.fontSize}
|
||||
|
|
|
@ -289,7 +289,8 @@
|
|||
//
|
||||
var jax = script.MathJax.elementJax, math = jax.root,
|
||||
span = document.getElementById(jax.inputID+"-Frame"),
|
||||
div = (jax.SVG.display ? span.parentNode : span);
|
||||
div = (jax.SVG.display ? (span||{}).parentNode : span);
|
||||
if (!span || !div) return;
|
||||
//
|
||||
// Set the font metrics
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user