From 7aad17f000bc8b2a4e3b87e69361864e2555f238 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 9 Apr 2022 11:52:48 +0800 Subject: Specify parent in ActivityView.width --- contents/ui/ActivityView.qml | 2 +- contents/ui/main.qml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'contents/ui') diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml index f35f89d..a439d0d 100644 --- a/contents/ui/ActivityView.qml +++ b/contents/ui/ActivityView.qml @@ -10,7 +10,7 @@ import org.kde.plasma.extras 2.0 as PlasmaExtras RowLayout { id: activityView - width: parent.width + width: (type == "announcement" ? announcementsListView : assignmentsListView).width Layout.fillWidth: true function sameDay(due, now) { diff --git a/contents/ui/main.qml b/contents/ui/main.qml index f207d25..9805065 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -120,6 +120,7 @@ Item { ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ListView { + id: announcementsListView Layout.fillWidth: true spacing: PlasmaCore.Units.smallSpacing delegate: ActivityView {} @@ -153,6 +154,7 @@ Item { ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ListView { + id: assignmentsListView Layout.fillWidth: true spacing: PlasmaCore.Units.gridUnit delegate: ActivityView {} -- cgit v1.2.3