If you do not want the main view to determine the initial size of the scene, you can override App.startand adjust the dimensions of the main stage, which will again determine the size of the scene:
override fun start(stage: Stage) {
super.start(stage)
stage.width = 800.0
stage.height = 600.0
}
To make it even simpler, in TornadoFX 1.5.3 there will be a function that allows you to independently create a scene for the main view:
override fun createPrimaryScene(view: View) = Scene(view.root, 800.0, 600.0)
, .