SDA-3544 - Reset inactive notifications to default width and height (#1327)

This commit is contained in:
Kiran Niranjan 2022-01-25 12:55:28 +05:30 committed by GitHub
parent 5bcf36e7bd
commit 88c62e0df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,10 @@ class Notification extends NotificationHandler {
if (this.inactiveWindows.length > 0) {
const inactiveWin = this.inactiveWindows[0];
if (windowExists(inactiveWin)) {
inactiveWin.setBounds({
width: CONTAINER_WIDTH,
height: CONTAINER_HEIGHT,
});
this.inactiveWindows.splice(0, 1);
this.renderNotification(inactiveWin, data);
return;