<@U25U0KPFT> Stackpane with layers: ```override va...
# tornadofx
p
@carlw Stackpane with layers:
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 {
                    rect = this
                }

                setOnMouseDragReleased {
                    fire(EndComponentCreation(it.sceneX, it.sceneY))
                }

                setOnDragOver {
                    it.acceptTransferModes(TransferMode.COPY)
                }
            }.apply {
                group = this
            }
        }
    }
Items are added to the
group