Skip to content

Commit 477903c

Browse files
committed
Fix problem with positioning of colored rectangles (when combined combitionings add up to zero).
1 parent 94b7c42 commit 477903c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unpacked/jax/output/SVG/jax.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,8 @@
850850
svg.h -= y; svg.d += y; svg.H -= y; svg.D +=y;
851851
svg.w -= x; svg.r -= x; svg.l += x;
852852
svg.removeable = false;
853+
child.setAttribute("x",Math.floor(svg.x/svg.scale));
854+
child.setAttribute("y",Math.floor(svg.y/svg.scale));
853855
}
854856
}
855857
if (Math.abs(svg.x) < 1 && Math.abs(svg.y) < 1) {

0 commit comments

Comments
 (0)