diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-04-09 11:52:48 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-04-09 11:52:48 +0800 |
commit | 7aad17f000bc8b2a4e3b87e69361864e2555f238 (patch) | |
tree | 83347103065ffc6157c705bc9e28fa9972dee9c5 /contents | |
parent | e22e00919f82582826db4d7e9fea83d0d9c633f3 (diff) |
Specify parent in ActivityView.width
Diffstat (limited to 'contents')
-rw-r--r-- | contents/ui/ActivityView.qml | 2 | ||||
-rw-r--r-- | contents/ui/main.qml | 2 |
2 files changed, 3 insertions, 1 deletions
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 {} |