summaryrefslogtreecommitdiff
path: root/modules/sidebar/NotifGroupList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sidebar/NotifGroupList.qml')
-rw-r--r--modules/sidebar/NotifGroupList.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/sidebar/NotifGroupList.qml b/modules/sidebar/NotifGroupList.qml
index 162c343..6a1a4b8 100644
--- a/modules/sidebar/NotifGroupList.qml
+++ b/modules/sidebar/NotifGroupList.qml
@@ -13,6 +13,7 @@ Item {
required property Props props
required property list<var> notifs
required property bool expanded
+ required property Flickable container
readonly property real nonAnimHeight: {
let h = -root.spacing;
@@ -60,6 +61,14 @@ Item {
return y;
}
+ containmentMask: QtObject {
+ function contains(p: point): bool {
+ if (!root.container.contains(notif.mapToItem(root.container, p)))
+ return false;
+ return notifInner.contains(p);
+ }
+ }
+
implicitWidth: root.width
implicitHeight: notifInner.implicitHeight