on xenial help sign in
Use anchors
commitc863425523efeede2d2d00b5c7360cd219d2de2e authorAlbert Astals <albert.astals@canonical.com> dateThu 19 Jun 2014, 11:58 (12 years ago) parent439de16
1 file changed+5−2
qml/Dash/DashDepartments.qml+5−2
qml/Dash/DashDepartments.qml+5−2
@@ -106,7 +106,11 @@ AbstractButton {
106106 // nullifyDepartment: overrides departmentId to be null
107107 // This is used to "clear" the delegate when going "right" on the tree
108108 }
109− width: root.width
109+ anchors {
110+ left: parent.left
111+ right: parent.right
112+ top: root.bottom
113+ }
110114 readonly property int maxHeight: (windowHeight - mapToItem(null, root.x, root.y).y) - units.gu(8)
111115 property int prevHeight: maxHeight
112116 height: currentItem ? currentItem.height : maxHeight
@@ -115,7 +119,6 @@ AbstractButton {
115119 prevHeight = currentItem.desiredHeight;
116120 }
117121 }
118− anchors.top: root.bottom
119122 highlightMoveDuration: UbuntuAnimation.FastDuration
120123 delegate: DashDepartmentsList {
121124 objectName: "department" + index