Fixed size initialization bug regarding correct computation of scenesize

This commit is contained in:
DieGurke 2020-08-01 10:04:53 +02:00
parent bbc47e9e85
commit d9c043c589

View File

@ -129,6 +129,7 @@ public final class SceneContext {
// The LoginScene is the only scene not intended to be resized // 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 // As strange as it seems, this is needed as otherwise the LoginScene won't be
// displayed on some OS (...Debian...) // displayed on some OS (...Debian...)
stage.sizeToScene();
Platform.runLater(() -> stage.setResizable(sceneInfo != SceneInfo.LOGIN_SCENE)); Platform.runLater(() -> stage.setResizable(sceneInfo != SceneInfo.LOGIN_SCENE));
applyCSS(); applyCSS();
stage.show(); stage.show();