From d9c043c58976b9fcd69b90bcbb6fe23b9e98c0f7 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();