when I have a single `View` in my `App` I use `set...
# tornadofx
h
when I have a single
View
in my
App
I use
setPrefSize()
to change the
Stage
size. good for my use-cases, but obviously it is prefered to change the size in the
App
.
Copy code
class MyApp : App(MyView::class) {
//    override fun createPrimaryScene(view: UIComponent) =
//        Scene(view.root, 800.0, 600.0)
}

class MyView : View() {
    override val root = stackpane {
        setPrefSize(200.0, 200.0)
        label("foo")
    }
}