If you're working on the primary stage, there is a...
# tornadofx
e
If you're working on the primary stage, there is a shortcut to access it:
primaryStage.sizeToScene()
. You do however need to make sure you do this after the new View is replaced, so a good place to do that is in the View itself. Override the
onDock
function and call it there for example.