class MainView : View() { override val root = vbox { button("Open and reposition").action { find().openModal() } } } class ChildView : View() { override val root = label("Tada :)") override fun onDock() { currentStage?.apply { x = 1.0 y = 1.0 } } }