Fix preference dialog root to resize with scene and fill stage properly
See: https://stackoverflow.com/a/77470109
This commit is contained in:
parent
1c5b7d9bcc
commit
898a5d3cc5
@ -37,6 +37,8 @@ class PreferencesDialog(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val root = fxmlLoader.load(javaClass.getResourceAsStream("/fxml/dialogs/preferences.fxml")) as DialogPane
|
val root = fxmlLoader.load(javaClass.getResourceAsStream("/fxml/dialogs/preferences.fxml")) as DialogPane
|
||||||
|
root.prefHeightProperty().bind(dialogPane.scene.heightProperty());
|
||||||
|
root.prefWidthProperty().bind(dialogPane.scene.widthProperty());
|
||||||
|
|
||||||
dialogPane = root
|
dialogPane = root
|
||||||
title = "Settings"
|
title = "Settings"
|
||||||
|
Loading…
Reference in New Issue
Block a user