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

Fixed bug caused by filter header where upon opening the day view layer and...

Fixed bug caused by filter header where upon opening the day view layer and then closing it, a chunk of the current view would be eaten by the toolbar
parent fa33d939
Pipeline #107059 passed with stage
in 4 minutes and 55 seconds
......@@ -997,11 +997,15 @@ Kirigami.ApplicationWindow {
if(Kirigami.Settings.isMobile) {
dayViewAction.trigger();
} else {
pageStack.layers.push(hourlyViewComponent);
pageStack.layers.currentItem.daysToShow = 1;
const view = pageStack.layers.push(hourlyViewComponent);
view.daysToShow = 1;
if(filterHeader.active) {
pageStack.layers.currentItem.header = filterHeader.item;
// We need to remove the header from the view being covered and then reattach it, otherwise we get some
// nasty resizing issues when we remove the layer
pageStack.currentItem.header = null;
view.header = filterHeader.item;
view.QQC2.StackView.removed.connect(function () { pageStack.currentItem.header = filterHeader.item; });
}
pageStack.layers.currentItem.setToDate(root.selectedDate, true);
......
Markdown is supported
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