Skip to content

Commit ba600e8

Browse files
committed
Merge pull request #1458 from dpvc/issue1422
Fix problem with container width in SVG when math is scaled. Resolves issue #1422.
2 parents a091415 + b7385f4 commit ba600e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpacked/jax/output/SVG/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
test = script.previousSibling; div = test.previousSibling;
250250
jax = script.MathJax.elementJax; if (!jax) continue;
251251
ex = test.firstChild.offsetHeight/60;
252-
cwidth = div.previousSibling.firstChild.offsetWidth;
252+
cwidth = div.previousSibling.firstChild.offsetWidth / this.config.scale * 100;
253253
if (relwidth) {maxwidth = cwidth}
254254
if (ex === 0 || ex === "NaN") {
255255
// can't read width, so move to hidden div for processing

0 commit comments

Comments
 (0)