on xenial help sign in
Avoid setting and unsetting left/right anchors for swipable notifications.
1545263Mirco Müller
qml/Notifications/Notification.qml−6
@@ -228,12 +228,6 @@ Item {
228 notificationList.currentIndex = index;
228 notificationList.currentIndex = index;
229 }
229 }
230 }
230 }
231− onPressed: {
232− if (draggable) {
233− notification.anchors.left = undefined
234− notification.anchors.right = undefined
235− }
236− }
237 onReleased: {
231 onReleased: {
238 if (notification.x < notification.width / 2) {
232 if (notification.x < notification.width / 2) {
239 notification.x = 0
233 notification.x = 0
qml/Notifications/Notifications.qml+1−4
@@ -46,10 +46,7 @@ ListView {
46
46
47 delegate: Notification {
47 delegate: Notification {
48 objectName: "notification" + index
48 objectName: "notification" + index
49− anchors {
50− left: parent.left
49+ width: parent.width
51− right: parent.right
52− }
53 type: model.type
50 type: model.type
54 hints: model.hints
51 hints: model.hints
55 iconSource: model.icon
52 iconSource: model.icon