on xenial help sign in
Prefer anchors
8c01dd1Albert Astals Cid
qml/Dash/DashNavigation.qml+10−4
@@ -52,8 +52,11 @@ Item {
52
52
53 Column {
53 Column {
54 id: headersColumn
54 id: headersColumn
55− anchors.top: parent.top
55+ anchors {
56− width: parent.width
56+ top: parent.top
57+ left: parent.left
58+ right: parent.right
59+ }
57
60
58 function pop(popsNeeded) {
61 function pop(popsNeeded) {
59 if (popsNeeded == 0)
62 if (popsNeeded == 0)
@@ -116,7 +119,11 @@ Item {
116 // nullifyNavigation: overrides navigationId to be null
119 // nullifyNavigation: overrides navigationId to be null
117 // This is used to "clear" the delegate when going "right" on the tree
120 // This is used to "clear" the delegate when going "right" on the tree
118 }
121 }
122+ anchors {
119− anchors.top: headersColumn.bottom
123+ top: headersColumn.bottom
124+ left: parent.left
125+ right: parent.right
126+ }
120 property int maxHeight: -1
127 property int maxHeight: -1
121 Component.onCompleted: updateMaxHeight();
128 Component.onCompleted: updateMaxHeight();
122 function updateMaxHeight()
129 function updateMaxHeight()
@@ -125,7 +132,6 @@ Item {
125 }
132 }
126 property int prevHeight: maxHeight
133 property int prevHeight: maxHeight
127 height: currentItem ? currentItem.height : maxHeight
134 height: currentItem ? currentItem.height : maxHeight
128− width: parent.width
129
135
130 onHeightChanged: {
136 onHeightChanged: {
131 if (currentItem) {
137 if (currentItem) {