notifs: fix being able to scroll
This commit is contained in:
parent
3925626117
commit
93cc4eacb0
1 changed files with 4 additions and 1 deletions
|
|
@ -68,10 +68,11 @@ Item {
|
||||||
id: wrapper
|
id: wrapper
|
||||||
|
|
||||||
required property Notifs.Notif modelData
|
required property Notifs.Notif modelData
|
||||||
|
required property int index
|
||||||
readonly property alias nonAnimHeight: notif.nonAnimHeight
|
readonly property alias nonAnimHeight: notif.nonAnimHeight
|
||||||
|
|
||||||
implicitWidth: notif.implicitWidth
|
implicitWidth: notif.implicitWidth
|
||||||
implicitHeight: notif.implicitHeight + Appearance.spacing.smaller
|
implicitHeight: notif.implicitHeight + (index > 0 ? Appearance.spacing.smaller : 0)
|
||||||
|
|
||||||
ListView.onRemove: removeAnim.start()
|
ListView.onRemove: removeAnim.start()
|
||||||
|
|
||||||
|
|
@ -114,6 +115,8 @@ Item {
|
||||||
|
|
||||||
ClippingRectangle {
|
ClippingRectangle {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: wrapper.index > 0 ? Appearance.spacing.smaller : 0
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
radius: notif.radius
|
radius: notif.radius
|
||||||
implicitWidth: notif.implicitWidth
|
implicitWidth: notif.implicitWidth
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue