on xenial help sign in
Fix anchors
9b7d973Rodney Dawes
qml/Wizard/Pages/50-timezone.qml+9−11
@@ -174,10 +174,9 @@ LocalComponents.Page {
174 width: Math.min(parent.width, units.gu(34))
174 width: Math.min(parent.width, units.gu(34))
175
175
176 LocalComponents.WizardTextField {
176 LocalComponents.WizardTextField {
177+ Layout.fillWidth: true
177 id: searchField
178 id: searchField
178 objectName: "tzFilter"
179 objectName: "tzFilter"
179− anchors.left: parent.left
180− anchors.right: parent.right
181 anchors.leftMargin: !showingMap && !wideMode ? staticMargin : undefined
180 anchors.leftMargin: !showingMap && !wideMode ? staticMargin : undefined
182 anchors.rightMargin: !showingMap && !wideMode ? staticMargin : undefined
181 anchors.rightMargin: !showingMap && !wideMode ? staticMargin : undefined
183 placeholderText: i18n.tr("Enter your city")
182 placeholderText: i18n.tr("Enter your city")
@@ -186,12 +185,11 @@ LocalComponents.Page {
186 }
185 }
187
186
188 ListView {
187 ListView {
188+ Layout.fillWidth: true
189 Layout.fillHeight: true
189 Layout.fillHeight: true
190 id: tzList
190 id: tzList
191 objectName: "tzList"
191 objectName: "tzList"
192 clip: true
192 clip: true
193− anchors.left: parent.left
194− anchors.right: parent.right
195 currentIndex: -1
193 currentIndex: -1
196 model: TimeZoneModel {
194 model: TimeZoneModel {
197 id: timeZoneModel
195 id: timeZoneModel
@@ -199,14 +197,14 @@ LocalComponents.Page {
199 country: i18n.language.split('_')[1].split('.')[0]
197 country: i18n.language.split('_')[1].split('.')[0]
200 }
198 }
201 delegate: tzComponent
199 delegate: tzComponent
202− }
203
200
204− ActivityIndicator {
201+ ActivityIndicator {
205− anchors.centerIn: tzList
202+ anchors.centerIn: parent
206− running: tzList.count == 0 &&
203+ running: tzList.count == 0 &&
207− searchField.length > 0 &&
204+ searchField.length > 0 &&
208− timeZoneModel.listUpdating
205+ timeZoneModel.listUpdating
209− visible: running
206+ visible: running
207+ }
210 }
208 }
211 }
209 }
212
210