Ok, new question, same theme: Given this layout: ...
# tornadofx
p
Ok, new question, same theme: Given this layout:
Copy code
override val root = scrollpane {
        stackpane {
            group {
                rectangle {
                    layoutX = 0.0
                    layoutY = 0.0
                    width = 5000.0
                    height = 5000.0
                    fill = Color.LIGHTGOLDENRODYELLOW
                }.apply {
                    drawingBackground = this
                }                
            }.apply {
                componentLayer = this
            }

            group {

            }.apply {
                wireLayer = this
            }
        }
    }
When converting scene coordinates to local coordinates using
parent.sceneToLocal
where parent is the
group
referred to as
componentLayer
I get
Point2D [x = 23.0, y = 15.0]
, but if I insted make parent to be the
group
named
wireLayer
I instead get
Point2D [x = -2478.0, y = -2486.0]
. Shouldn't both groups convert the coordinates to the same value?