diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt index b92fc30..80aed7d 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/app/Main.kt @@ -13,6 +13,12 @@ class Main : App(StartupView::class) { override fun start(stage: Stage) { + // Calling super.start early prevents a weird layouting bug + // were the button of the window is white. + // This could(?) be caused by stage and StartupView having + // a different min-size. + super.start(stage) + stage.minWidth = 1008.00 stage.minHeight = 535.00 stage.width = 1008.00 @@ -21,8 +27,7 @@ class Main : App(StartupView::class) { stage.icons.add(Image("icons/TextureSync_Icon_256x256.png")) stage.setOnCloseRequest { System.exit(0) } - super.start(stage) - stage.scene.stylesheets.add("/css/Styles.css") // this call must be after the super call + stage.scene.stylesheets.add("/css/Styles.css") SettingsController.init() svc.initConnection()