on xenial help sign in
Fix the calculation of maxHeight
9087b8aAlbert Astals
qml/Dash/DashDepartments.qml+1−1
@@ -107,7 +107,7 @@ AbstractButton {
107 // This is used to "clear" the delegate when going "right" on the tree
107 // This is used to "clear" the delegate when going "right" on the tree
108 }
108 }
109 width: root.width
109 width: root.width
110− readonly property int maxHeight: units.gu(60)
110+ readonly property int maxHeight: (windowHeight - mapToItem(null, root.x, root.y).y) - units.gu(8)
111 property int prevHeight: maxHeight
111 property int prevHeight: maxHeight
112 height: currentItem ? currentItem.height : maxHeight
112 height: currentItem ? currentItem.height : maxHeight
113 onHeightChanged: prevHeight = height;
113 onHeightChanged: prevHeight = height;