From e7b761ddc5fddd971e717f65cd92f65b6989a569 Mon Sep 17 00:00:00 2001 From: Ye ShanShan Date: Fri, 15 Nov 2024 17:19:51 +0800 Subject: [PATCH] fix: incorrect height of notificationCenter for notification as title. Bug: https://pms.uniontech.com/bug-view-283749.html --- panels/notification/center/NotifyCenter.qml | 6 +++++- panels/notification/center/package/main.qml | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/panels/notification/center/NotifyCenter.qml b/panels/notification/center/NotifyCenter.qml index 230681993..c1c20c0db 100644 --- a/panels/notification/center/NotifyCenter.qml +++ b/panels/notification/center/NotifyCenter.qml @@ -25,6 +25,10 @@ FocusScope { anchors.fill: parent NotifyHeader { id: header + anchors { + top: parent.top + left: parent.left + } height: 40 width: parent.width notifyModel: notifyModel @@ -37,6 +41,7 @@ FocusScope { left: parent.left top: header.bottom topMargin: 10 + bottom: parent.bottom } width: parent.width @@ -45,4 +50,3 @@ FocusScope { } } } - diff --git a/panels/notification/center/package/main.qml b/panels/notification/center/package/main.qml index 59e33a315..b7718df5f 100644 --- a/panels/notification/center/package/main.qml +++ b/panels/notification/center/package/main.qml @@ -82,17 +82,22 @@ Window { } } - ColumnLayout { + Item { id: view width: parent.width anchors { top: parent.top left: parent.left margins: 10 + bottom: parent.bottom } NotifyStaging { id: notifyStaging + anchors { + top: parent.top + left: parent.left + } implicitWidth: 360 Connections { target: Panel @@ -108,6 +113,12 @@ Window { NotifyCenter { id: notifyCenter + anchors { + top: notifyStaging.bottom + left: parent.left + bottom: parent.bottom + } + Connections { target: Panel function onVisibleChanged() {