Commit 2fd7c24f authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix errors in main.qml



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 7065b026
Pipeline #234113 failed with stage
in 4 minutes and 21 seconds
......@@ -137,7 +137,7 @@ Kirigami.ApplicationWindow {
pageStack.layers.pop();
return;
}
if(contextDrawer.visible) {
if(contextDrawer && contextDrawer.visible) {
contextDrawer.close();
return;
}
......@@ -650,7 +650,7 @@ Kirigami.ApplicationWindow {
return Math.max(itemLeft, Math.min(clickPosition.x, itemRight - width));
}
// Make sure not to cover up the incidence item
y: positionBelowIncidenceItem ? incidenceItemPosition.y + openingIncidenceItem.height : incidenceItemPosition.y - height;
y: positionBelowIncidenceItem && openingIncidenceItem ? incidenceItemPosition.y + openingIncidenceItem.height : incidenceItemPosition.y - height;
width: Math.min(pageStack.currentItem.width, Kirigami.Units.gridUnit * 30)
height: Math.min(Kirigami.Units.gridUnit * 50, scrollView.contentHeight)
......
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