notifs: actually fix y pos during remove anim
This commit is contained in:
parent
b5c65ee0bf
commit
218ee2de95
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue