notifications - limit stack height

This commit is contained in:
Benjamin Pasero 2018-03-28 10:47:39 +02:00
parent 22a30ac9fa
commit e94f77ab65

View file

@ -437,6 +437,8 @@ export class NotificationsToasts extends Themable {
availableHeight -= (2 * 12); // adjust for paddings top and bottom
}
availableHeight = Math.round(availableHeight * 0.618); // try to not cover the full height for stacked toasts
return new Dimension(Math.min(maxWidth, availableWidth), availableHeight);
}