Hey everyone, can someone help me to find a nice w...
# tornadofx
a
Hey everyone, can someone help me to find a nice way to go from one view (MainMenu) to the next view (Workspace). They have different size which makes everything using
mainmenu.replaceWith(workspace, sizeToScenne = true, ...)
kind of ugly, lagy or jumpy... on the other hand creating a new Window with
find<WorkspaceView>().close()
find<MainMenu>().openWindow(escapeClosesWindow = false)
resulted in messing up the scopes (which i didn't cared about at all at that point) and some other stuff... but looks much better. Maybe someone has some thoughts on this ... Thanks
Copy code
mainMenu.root.isVisible = false
primaryStage.isResizable = true
mainMenu.replaceWith(splitView, ViewTransition.FadeThrough(250.millis), sizeToScene = true, centerOnScreen = true)
What makes the effect a litte better is when i set the mainmenu invisible before switching the view and not having the old content resized and somehow faded ...