on xenial help sign in
Prefer anchors
commit8c01dd1e313fe9732c3524faf450736f17d35a66 authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 9 Oct 2015, 12:27 (11 years ago) parentd972fc8
1 file changed+10−4
qml/Dash/DashNavigation.qml+10−4
qml/Dash/DashNavigation.qml+10−4
@@ -52,8 +52,11 @@ Item {
5252
5353 Column {
5454 id: headersColumn
55− anchors.top: parent.top
56− width: parent.width
55+ anchors {
56+ top: parent.top
57+ left: parent.left
58+ right: parent.right
59+ }
5760
5861 function pop(popsNeeded) {
5962 if (popsNeeded == 0)
@@ -116,7 +119,11 @@ Item {
116119 // nullifyNavigation: overrides navigationId to be null
117120 // This is used to "clear" the delegate when going "right" on the tree
118121 }
119− anchors.top: headersColumn.bottom
122+ anchors {
123+ top: headersColumn.bottom
124+ left: parent.left
125+ right: parent.right
126+ }
120127 property int maxHeight: -1
121128 Component.onCompleted: updateMaxHeight();
122129 function updateMaxHeight()
@@ -125,7 +132,6 @@ Item {
125132 }
126133 property int prevHeight: maxHeight
127134 height: currentItem ? currentItem.height : maxHeight
128− width: parent.width
129135
130136 onHeightChanged: {
131137 if (currentItem) {