Fix problem with container width in SVG when math is scaled. Resolves issue #1422.
This commit is contained in:
parent
288e4f476d
commit
b7385f44d2
|
@ -249,7 +249,7 @@
|
||||||
test = script.previousSibling; div = test.previousSibling;
|
test = script.previousSibling; div = test.previousSibling;
|
||||||
jax = script.MathJax.elementJax; if (!jax) continue;
|
jax = script.MathJax.elementJax; if (!jax) continue;
|
||||||
ex = test.firstChild.offsetHeight/60;
|
ex = test.firstChild.offsetHeight/60;
|
||||||
cwidth = div.previousSibling.firstChild.offsetWidth;
|
cwidth = div.previousSibling.firstChild.offsetWidth / this.config.scale * 100;
|
||||||
if (relwidth) {maxwidth = cwidth}
|
if (relwidth) {maxwidth = cwidth}
|
||||||
if (ex === 0 || ex === "NaN") {
|
if (ex === 0 || ex === "NaN") {
|
||||||
// can't read width, so move to hidden div for processing
|
// can't read width, so move to hidden div for processing
|
||||||
|
|
Loading…
Reference in New Issue
Block a user