Skip to content

Commit 71ae42a

Browse files
committed
Adjust max-width in SVG to account for scaling factor.
1 parent 24a811f commit 71ae42a

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
@@ -2223,7 +2223,7 @@
22232223
// so if they are close to full width, make sure they aren't too big.
22242224
//
22252225
if (Math.abs(w-SVG.cwidth) < 10)
2226-
style.maxWidth = SVG.Fixed(SVG.cwidth*SVG.em/1000) + "px";
2226+
style.maxWidth = SVG.Fixed(SVG.cwidth*SVG.em/1000*SVG.config.scale) + "px";
22272227
//
22282228
// Add it to the MathJax span
22292229
//

0 commit comments

Comments
 (0)