Commit d3f34489 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳 Committed by Simon Schmeißer

Completion: Calculate height dynamically

parent b000bdbb
......@@ -35,7 +35,12 @@ ListView {
}
width: 0.9 * navigation.width
height: Kirigami.Units.gridUnit * 3 * count
height: {
if (Kirigami.Units.gridUnit * 3 * count >= parent.height * 0.5)
return parent.height * 0.5
else
Kirigami.Units.gridUnit * 3 * count
}
z: 10
verticalLayoutDirection: ListView.BottomToTop
......
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