From: rnayabed Date: Sun, 17 Jan 2021 12:46:02 +0530 Subject: Fixed Alert max size --- Fixed Alert max size --- --- 'a/src/main/java/com/StreamPi/Util/Alert/StreamPiAlert.java' +++ b/src/main/java/com/StreamPi/Util/Alert/StreamPiAlert.java @@ -167,6 +167,7 @@ public class StreamPiAlert { alertPane.getStyleClass().add("alert_content_pane"); ScrollPane scrollPane = new ScrollPane(alertPane); + scrollPane.prefHeightProperty().bind(alertPane.heightProperty().add(20)); scrollPane.getStyleClass().add("alert_scroll_pane"); alertPane.prefWidthProperty().bind(scrollPane.widthProperty().subtract(10)); @@ -182,6 +183,7 @@ public class StreamPiAlert { buttonBar ); + alertVBox.setMaxHeight(Double.NEGATIVE_INFINITY); return alertVBox; }