From e2b75ab556d6e74d93940e65447fcf9190ae6d7b Mon Sep 17 00:00:00 2001 From: mkpaz Date: Sat, 17 Jun 2023 14:48:39 +0400 Subject: [PATCH] Fix Notification text width #56 --- .../src/main/java/atlantafx/base/controls/NotificationSkin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/main/java/atlantafx/base/controls/NotificationSkin.java b/base/src/main/java/atlantafx/base/controls/NotificationSkin.java index f62bb0c..73cf4c9 100644 --- a/base/src/main/java/atlantafx/base/controls/NotificationSkin.java +++ b/base/src/main/java/atlantafx/base/controls/NotificationSkin.java @@ -58,7 +58,7 @@ public class NotificationSkin extends SkinBase { registerChangeListener(control.messageProperty(), o -> setMessageText()); // text wrapping won't work without this - messageText.setMaxWidth(Region.USE_PREF_SIZE); + messageText.setMaxWidth(Double.MAX_VALUE); messageText.setMinHeight(Region.USE_PREF_SIZE); // == TOP BUTTONS ==