Fixed size initialization bug regarding correct computation of scenesize
This commit is contained in:
parent
74ebd158f2
commit
59188711b8
@ -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();
|
||||||
|
Reference in New Issue
Block a user