on xenial help sign in
Fix the calculation of maxHeight
commit9087b8ae89b8fc063ed6cba81e96dede97addfc2 authorAlbert Astals <albert.astals@canonical.com> dateWed 18 Jun 2014, 13:43 (12 years ago) parent4202f89
1 file changed+1−1
qml/Dash/DashDepartments.qml+1−1
qml/Dash/DashDepartments.qml+1−1
@@ -107,7 +107,7 @@ AbstractButton {
107107 // This is used to "clear" the delegate when going "right" on the tree
108108 }
109109 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)
111111 property int prevHeight: maxHeight
112112 height: currentItem ? currentItem.height : maxHeight
113113 onHeightChanged: prevHeight = height;