Avoid setting and unsetting left/right anchors for swipable notifications.
commit1545263af1b88a03ea997dd83d0d7b9a248f910a
authorMirco Müller <mirco.mueller@ubuntu.com>
dateWed 12 Nov 2014, 16:29 (12 years ago)
parentda18a79
qml/Notifications/Notification.qml−6
@@ -228,12 +228,6 @@ Item {
228228 notificationList.currentIndex = index;
229229 }
230230 }
231− onPressed: {
232− if (draggable) {
233− notification.anchors.left = undefined
234− notification.anchors.right = undefined
235− }
236− }
237231 onReleased: {
238232 if (notification.x < notification.width / 2) {
239233 notification.x = 0
qml/Notifications/Notifications.qml+1−4
@@ -46,10 +46,7 @@ ListView {
4646
4747 delegate: Notification {
4848 objectName: "notification" + index
49− anchors {
50− left: parent.left
51− right: parent.right
52− }
49+ width: parent.width
5350 type: model.type
5451 hints: model.hints
5552 iconSource: model.icon