diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index d4d69db4..ca47a6e9 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -22,7 +22,7 @@ Variants { property ListModel notificationModel: NotificationService.activeList // Always create window (but with 0x0 dimensions when no notifications) - active: true + active: notificationModel.count > 0 || delayTimer.running // Keep loader active briefly after last notification to allow animations to complete Timer { @@ -104,8 +104,8 @@ Variants { margins.left: isLeft ? barOffsetLeft : 0 margins.right: isRight ? barOffsetRight : 0 - implicitWidth: (notificationModel.count > 0 || delayTimer.running) ? notifWidth : 0 - implicitHeight: (notificationModel.count > 0 || delayTimer.running) ? (notificationStack.implicitHeight + Style.marginL) : 0 + implicitWidth: notifWidth + implicitHeight: notificationStack.implicitHeight + Style.marginL property var animateConnection: null