If you don't want to override the view, you would ...
# tornadofx
e
If you don't want to override the view, you would probably be good with wrapping the sizeToScene call in
Platform.runLater {}
as a workaround.