From 8bf3d43866ed23edc667b8c64295687e6e4bbc3d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Aug 2018 14:51:37 +0200 Subject: Calculate indentation --- views/calendar/qml/WeekView.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/calendar') diff --git a/views/calendar/qml/WeekView.qml b/views/calendar/qml/WeekView.qml index 08c56e5a..9366becc 100644 --- a/views/calendar/qml/WeekView.qml +++ b/views/calendar/qml/WeekView.qml @@ -260,10 +260,10 @@ FocusScope { rightMargin: Kube.Units.smallSpacing } radius: 2 - width: root.dayWidth - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.modelData.indention + width: root.dayWidth - Kube.Units.smallSpacing * 2 - Kube.Units.gridUnit * model.modelData.indentation height: Math.max(root.hourHeight * 0.5, root.hourHeight * model.modelData.duration) y: root.hourHeight * model.modelData.starts - x: Kube.Units.gridUnit * model.modelData.indention + x: Kube.Units.gridUnit * model.modelData.indentation color: model.modelData.color opacity: 0.8 -- cgit v1.2.3