Fix preference dialog root to resize with scene and fill stage properly

See: https://stackoverflow.com/a/77470109
This commit is contained in:
Marvin Elsen 2024-10-10 20:32:43 +02:00
parent 1c5b7d9bcc
commit 898a5d3cc5
Signed by: marvinelsen
GPG Key ID: 820672408CC318C2

View File

@ -37,6 +37,8 @@ class PreferencesDialog(
}
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
title = "Settings"