summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contents/ui/ActivityView.qml2
-rw-r--r--contents/ui/main.qml2
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 {}