Ok, I figured it out. Because the second `group` d...
# tornadofx
p
Ok, I figured it out. Because the second
group
doesn't have a rectangle taking up space, the coordinate system is calculated differently. I don't quite understand it, but by changing the second
group
to this, it works as expected.
Copy code
group {
                rectangle {
                    layoutX = 0.0
                    layoutY = 0.0
                    width = 5000.0
                    height = 5000.0
                    fill = Color.TRANSPARENT
                }.apply {
                    drawingBackground2 = this
                }
            }.apply {
                wireLayer = this
            }