Merge branch 'issue730' into develop. Issue #730.

This commit is contained in:
Davide P. Cervone 2014-02-07 10:06:13 -05:00
commit 25d6ce9f65
3 changed files with 6 additions and 4 deletions

View File

@ -590,7 +590,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 (!div) return;
//
// Set the font metrics
//

View File

@ -289,8 +289,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}

View File

@ -295,7 +295,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 (!div) return;
//
// Set the font metrics
//