Merge pull request #1538 from dpvc/issue1364
Don't let preview width interfere with the determination of the container width. #1364
This commit is contained in:
commit
e75d86950f
|
@ -411,6 +411,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
|
||||||
//
|
//
|
||||||
|
@ -472,11 +473,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;
|
||||||
|
|
|
@ -580,6 +580,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
|
||||||
|
@ -655,6 +656,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
|
||||||
|
|
|
@ -222,6 +222,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
|
||||||
|
@ -286,6 +287,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