Skip to content

Commit

Permalink
CSSTUDIO-1987 Set min-size of confirmation dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamwolk committed Aug 8, 2023
1 parent 560aade commit 319b084
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,7 @@ public static boolean confirmationDialogWhenUnsavedChangesExist(SortedMap<String
int prefWidth = 750;
int prefHeight = 400;
prompt.getDialogPane().setPrefSize(prefWidth, prefHeight);
prompt.getDialogPane().setMinSize(Region.USE_PREF_SIZE, Region.USE_PREF_SIZE);
prompt.setResizable(false);

DialogHelper.positionDialog(prompt, stageToPositionTheConfirmationDialogOver.getScene().getRoot(), -prefWidth/2, -prefHeight/2);
Expand Down

0 comments on commit 319b084

Please sign in to comment.