Don't let preview width interfere with the determination of the container width. Resolves issue #1364.
This commit is contained in:
parent
7523687f4c
commit
3ee5ca30bb
|
@ -404,6 +404,7 @@
|
||||||
prev = script.previousSibling;
|
prev = script.previousSibling;
|
||||||
if (prev && prev.className && String(prev.className).substr(0,9) === "mjx-chtml")
|
if (prev && prev.className && String(prev.className).substr(0,9) === "mjx-chtml")
|
||||||
prev.parentNode.removeChild(prev);
|
prev.parentNode.removeChild(prev);
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "none";
|
||||||
//
|
//
|
||||||
// Add the node for the math and mark it as being processed
|
// Add the node for the math and mark it as being processed
|
||||||
//
|
//
|
||||||
|
@ -465,11 +466,12 @@
|
||||||
//
|
//
|
||||||
for (i = 0; i < m; i++) {
|
for (i = 0; i < m; i++) {
|
||||||
script = scripts[i]; if (!script.parentNode) continue;
|
script = scripts[i]; if (!script.parentNode) continue;
|
||||||
test = scripts[i].previousSibling;
|
test = scripts.previousSibling;
|
||||||
span = test.previousSibling;
|
span = test.previousSibling;
|
||||||
jax = scripts[i].MathJax.elementJax; if (!jax) continue;
|
jax = scripts.MathJax.elementJax; if (!jax) continue;
|
||||||
span.parentNode.removeChild(span);
|
span.parentNode.removeChild(span);
|
||||||
test.parentNode.removeChild(test);
|
test.parentNode.removeChild(test);
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "";
|
||||||
}
|
}
|
||||||
state.CHTMLeqn = state.CHTMLlast = 0; state.CHTMLi = -1;
|
state.CHTMLeqn = state.CHTMLlast = 0; state.CHTMLi = -1;
|
||||||
state.CHTMLchunk = this.config.EqnChunk;
|
state.CHTMLchunk = this.config.EqnChunk;
|
||||||
|
|
|
@ -577,6 +577,7 @@
|
||||||
prev = script.previousSibling;
|
prev = script.previousSibling;
|
||||||
if (prev && String(prev.className).match(/^MathJax(_Display)?( MathJax_Processing)?$/))
|
if (prev && String(prev.className).match(/^MathJax(_Display)?( MathJax_Processing)?$/))
|
||||||
{prev.parentNode.removeChild(prev)}
|
{prev.parentNode.removeChild(prev)}
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "none";
|
||||||
//
|
//
|
||||||
// Add the span, and a div if in display mode,
|
// Add the span, and a div if in display mode,
|
||||||
// then mark it as being processed
|
// then mark it as being processed
|
||||||
|
@ -652,6 +653,7 @@
|
||||||
if (!jax.HTMLCSS.isHidden) {span = span.previousSibling}
|
if (!jax.HTMLCSS.isHidden) {span = span.previousSibling}
|
||||||
span.parentNode.removeChild(span);
|
span.parentNode.removeChild(span);
|
||||||
test.parentNode.removeChild(test);
|
test.parentNode.removeChild(test);
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "";
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Set state variables used for displaying equations in chunks
|
// Set state variables used for displaying equations in chunks
|
||||||
|
|
|
@ -221,6 +221,7 @@
|
||||||
prev = script.previousSibling;
|
prev = script.previousSibling;
|
||||||
if (prev && String(prev.className).match(/^MathJax(_SVG)?(_Display)?( MathJax(_SVG)?_Process(ing|ed))?$/))
|
if (prev && String(prev.className).match(/^MathJax(_SVG)?(_Display)?( MathJax(_SVG)?_Process(ing|ed))?$/))
|
||||||
{prev.parentNode.removeChild(prev)}
|
{prev.parentNode.removeChild(prev)}
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "none";
|
||||||
//
|
//
|
||||||
// Add the span, and a div if in display mode,
|
// Add the span, and a div if in display mode,
|
||||||
// then set the role and mark it as being processed
|
// then set the role and mark it as being processed
|
||||||
|
@ -285,6 +286,7 @@
|
||||||
if (!jax.SVG.isHidden) {span = span.previousSibling}
|
if (!jax.SVG.isHidden) {span = span.previousSibling}
|
||||||
span.parentNode.removeChild(span);
|
span.parentNode.removeChild(span);
|
||||||
test.parentNode.removeChild(test);
|
test.parentNode.removeChild(test);
|
||||||
|
if (script.MathJax.preview) script.MathJax.preview.style.display = "";
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Set state variables used for displaying equations in chunks
|
// Set state variables used for displaying equations in chunks
|
||||||
|
|
Loading…
Reference in New Issue
Block a user