mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
notifications - limit stack height
This commit is contained in:
parent
22a30ac9fa
commit
e94f77ab65
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue