on xenial help sign in
We need to boostrap height also when we have 1 item ^_^
fbcec32Albert Astals
qml/Dash/CardVerticalJournal.qml+1−1
@@ -31,7 +31,7 @@ DashRenderer {
31 // is special by the fact that it doesn't know how to calculate its implicit height unless we give it
31 // is special by the fact that it doesn't know how to calculate its implicit height unless we give it
32 // enough height that it can start creating its children so we make sure it has enough height for that
32 // enough height that it can start creating its children so we make sure it has enough height for that
33 // in case the model is non empty
33 // in case the model is non empty
34− readonly property double minHeight: root.model.count > 1 ? cardVerticalJournal.rowSpacing + 1 : 0
34+ readonly property double minHeight: root.model.count >= 1 ? cardVerticalJournal.rowSpacing + 1 : 0
35 height: filtered ? Math.max(collapsedHeight, minHeight) : uncollapsedHeight
35 height: filtered ? Math.max(collapsedHeight, minHeight) : uncollapsedHeight
36
36
37 Behavior on height {
37 Behavior on height {