Skip to content

Commit 8bb8dab

Browse files
committed
fix: incorrect height of notificationCenter for notification
as title. Bug: https://pms.uniontech.com/bug-view-283749.html
1 parent 7f8ce0a commit 8bb8dab

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

panels/notification/center/NotifyCenter.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ FocusScope {
2525
anchors.fill: parent
2626
NotifyHeader {
2727
id: header
28+
anchors {
29+
top: parent.top
30+
left: parent.left
31+
}
2832
height: 40
2933
width: parent.width
3034
notifyModel: notifyModel
@@ -37,6 +41,7 @@ FocusScope {
3741
left: parent.left
3842
top: header.bottom
3943
topMargin: 10
44+
bottom: parent.bottom
4045
}
4146

4247
width: parent.width
@@ -45,4 +50,3 @@ FocusScope {
4550
}
4651
}
4752
}
48-

panels/notification/center/package/main.qml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,22 @@ Window {
8282
}
8383
}
8484

85-
ColumnLayout {
85+
Item {
8686
id: view
8787
width: parent.width
8888
anchors {
8989
top: parent.top
9090
left: parent.left
9191
margins: 10
92+
bottom: parent.bottom
9293
}
9394

9495
NotifyStaging {
9596
id: notifyStaging
97+
anchors {
98+
top: parent.top
99+
left: parent.left
100+
}
96101
implicitWidth: 360
97102
Connections {
98103
target: Panel
@@ -108,6 +113,12 @@ Window {
108113

109114
NotifyCenter {
110115
id: notifyCenter
116+
anchors {
117+
top: notifyStaging.bottom
118+
left: parent.left
119+
bottom: parent.bottom
120+
}
121+
111122
Connections {
112123
target: Panel
113124
function onVisibleChanged() {

0 commit comments

Comments
 (0)