Skip to content

Commit

Permalink
Add setPrefHeight(),otherwise, the list won't be able to layout notif…
Browse files Browse the repository at this point in the history
…ications correctly.
  • Loading branch information
infinite-dev22 committed Oct 28, 2023
1 parent a45dcd6 commit 409e09b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public NotificationsController(Stage stage) {

MFXNotificationCenter center = MFXNotificationCenterSystem.instance().getCenter();
center.setCellFactory(notification -> new MFXNotificationCell(center, notification) {
{
setPrefHeight(400);
}
});
});
}
Expand Down

0 comments on commit 409e09b

Please sign in to comment.