From 59188711b82e9ddcfa39c85326e0af080dd0b301 Mon Sep 17 00:00:00 2001 From: DieGurke <55625494+DieGurke@users.noreply.github.com> Date: Sat, 1 Aug 2020 10:04:53 +0200 Subject: [PATCH] Fixed size initialization bug regarding correct computation of scenesize --- client/src/main/java/envoy/client/ui/SceneContext.java | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/main/java/envoy/client/ui/SceneContext.java b/client/src/main/java/envoy/client/ui/SceneContext.java index d9585fa..a7ab403 100644 --- a/client/src/main/java/envoy/client/ui/SceneContext.java +++ b/client/src/main/java/envoy/client/ui/SceneContext.java @@ -129,6 +129,7 @@ public final class SceneContext { // The LoginScene is the only scene not intended to be resized // As strange as it seems, this is needed as otherwise the LoginScene won't be // displayed on some OS (...Debian...) + stage.sizeToScene(); Platform.runLater(() -> stage.setResizable(sceneInfo != SceneInfo.LOGIN_SCENE)); applyCSS(); stage.show();