From 218ee2de95e11e34f095fb8a1c14fa7793b393f8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:52:47 +1000 Subject: notifs: actually fix y pos during remove anim --- modules/notifications/Content.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/notifications') diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml index 3cc1301..a64ccb9 100644 --- a/modules/notifications/Content.qml +++ b/modules/notifications/Content.qml @@ -70,9 +70,15 @@ Item { required property Notifs.Notif modelData required property int index readonly property alias nonAnimHeight: notif.nonAnimHeight + property int idx + + onIndexChanged: { + if (index !== -1) + idx = index; + } implicitWidth: notif.implicitWidth - implicitHeight: notif.implicitHeight + (index === 0 ? 0 : Appearance.spacing.smaller) + implicitHeight: notif.implicitHeight + (idx === 0 ? 0 : Appearance.spacing.smaller) ListView.onRemove: removeAnim.start() @@ -115,7 +121,7 @@ Item { ClippingRectangle { anchors.top: parent.top - anchors.topMargin: wrapper.index === 0 ? 0 : Appearance.spacing.smaller + anchors.topMargin: wrapper.idx === 0 ? 0 : Appearance.spacing.smaller color: "transparent" radius: notif.radius -- cgit v1.2.3-freya