The notification opens in the middle of the screen, but it doesn’t matter what components I add to the notification, they just wont display. All I get is a small empty white square box. I’ve tried this with Vaadin 15 and 16 and see the same behavior.
myComponent
.getUI()
.ifPresent(
ui ->
ui.access(
() -> {
ProgressBar bar = new ProgressBar();
bar.setIndeterminate(true);
Notification notification = new Notification(bar);
notification.setPosition(Position.MIDDLE);
notification.open();
}));