Remove fixed size support from SceneContext
This commit is contained in:
parent
67ebc6be83
commit
6d85e337d2
@ -73,8 +73,6 @@ public final class SceneContext implements EventListener {
|
|||||||
scene.setRoot(root);
|
scene.setRoot(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
stage.setResizable(info.resizable);
|
|
||||||
|
|
||||||
// Remove previous keyboard shortcuts
|
// Remove previous keyboard shortcuts
|
||||||
scene.getAccelerators().clear();
|
scene.getAccelerators().clear();
|
||||||
|
|
||||||
|
@ -27,24 +27,14 @@ public enum SceneInfo {
|
|||||||
*
|
*
|
||||||
* @since Envoy Client v0.1-beta
|
* @since Envoy Client v0.1-beta
|
||||||
*/
|
*/
|
||||||
LOGIN_SCENE("/fxml/LoginScene.fxml", false);
|
LOGIN_SCENE("/fxml/LoginScene.fxml");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The path to the FXML resource.
|
* The path to the FXML resource.
|
||||||
*/
|
*/
|
||||||
public final String path;
|
public final String path;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the scene should be resizable.
|
|
||||||
*/
|
|
||||||
public final boolean resizable;
|
|
||||||
|
|
||||||
SceneInfo(String path) {
|
SceneInfo(String path) {
|
||||||
this(path, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
SceneInfo(String path, boolean resizable) {
|
|
||||||
this.path = path;
|
this.path = path;
|
||||||
this.resizable = resizable;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user