Fixed size initialization bug regarding correct computation of scenesize

This commit is contained in:
DieGurke 2020-08-01 10:04:53 +02:00
parent 74ebd158f2
commit 59188711b8
1 changed files with 1 additions and 0 deletions

View File

@ -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();