on xenial help sign in
Use the the properties margin and fullHeight also in the qmltest.
4d89968Mirco Müller
Notifications/Notifications.qml+3
@@ -24,6 +24,9 @@ ListView {
24 objectName: "notificationList"
24 objectName: "notificationList"
25 interactive: false
25 interactive: false
26
26
27+ property real margin
28+ property real fullHeight
29+
27 delegate: Notification {
30 delegate: Notification {
28 objectName: "notification" + index
31 objectName: "notification" + index
29 anchors {
32 anchors {
Shell.qml+2−2
@@ -688,8 +688,8 @@ FocusScope {
688 id: notifications
688 id: notifications
689
689
690 model: NotificationBackend.Model
690 model: NotificationBackend.Model
691− property real margin: units.gu(1)
691+ margin: units.gu(1)
692− property real fullHeight: parent.height
692+ fullHeight: parent.height
693
693
694 anchors {
694 anchors {
695 top: parent.top
695 top: parent.top
tests/qmltests/Notifications/tst_Notifications.qml+3−1
@@ -126,8 +126,10 @@ Row {
126 Notifications {
126 Notifications {
127 id: notifications
127 id: notifications
128
128
129+ margin: units.gu(1)
130+ fullHeight: parent.height
131+
129 anchors.fill: parent
132 anchors.fill: parent
130− anchors.margins: units.gu(1)
131 model: mockModel
133 model: mockModel
132 }
134 }
133 }
135 }