Commit c92f3cf8 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix all day view being visible in defaultHeight mode in hourly view even when...


Fix all day view being visible in defaultHeight mode in hourly view even when no incidences are shown

Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 4428a5da
Pipeline #243605 passed with stage
in 2 minutes and 16 seconds
......@@ -343,7 +343,9 @@ Kirigami.Page {
readonly property int minHeight: Kirigami.Units.gridUnit *2
readonly property int maxHeight: pathView.height / 3
readonly property int lineHeight: viewLoader.multiDayLinesShown * (Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing + root.incidenceSpacing) + Kirigami.Units.smallSpacing
readonly property int lineHeight: viewLoader.multiDayLinesShown > 0 ?
viewLoader.multiDayLinesShown * (Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing + root.incidenceSpacing) + Kirigami.Units.smallSpacing :
0
readonly property int defaultHeight: Math.min(lineHeight, maxHeight)
property int actualHeight: {
if (Kalendar.Config.weekViewAllDayHeaderHeight === -1) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment