on xenial help sign in
Fix anchors
commit9b7d9735ba8c61588ffa08bbaab33cb96604306c authorRodney Dawes <dobey@ubports.com> dateThu 6 Aug 2020, 17:00 (6 years ago) parent3d6236e
1 file changed+9−11
qml/Wizard/Pages/50-timezone.qml+9−11
qml/Wizard/Pages/50-timezone.qml+9−11
@@ -174,10 +174,9 @@ LocalComponents.Page {
174174 width: Math.min(parent.width, units.gu(34))
175175
176176 LocalComponents.WizardTextField {
177+ Layout.fillWidth: true
177178 id: searchField
178179 objectName: "tzFilter"
179− anchors.left: parent.left
180− anchors.right: parent.right
181180 anchors.leftMargin: !showingMap && !wideMode ? staticMargin : undefined
182181 anchors.rightMargin: !showingMap && !wideMode ? staticMargin : undefined
183182 placeholderText: i18n.tr("Enter your city")
@@ -186,12 +185,11 @@ LocalComponents.Page {
186185 }
187186
188187 ListView {
188+ Layout.fillWidth: true
189189 Layout.fillHeight: true
190190 id: tzList
191191 objectName: "tzList"
192192 clip: true
193− anchors.left: parent.left
194− anchors.right: parent.right
195193 currentIndex: -1
196194 model: TimeZoneModel {
197195 id: timeZoneModel
@@ -199,14 +197,14 @@ LocalComponents.Page {
199197 country: i18n.language.split('_')[1].split('.')[0]
200198 }
201199 delegate: tzComponent
202− }
203200
204− ActivityIndicator {
205− anchors.centerIn: tzList
206− running: tzList.count == 0 &&
207− searchField.length > 0 &&
208− timeZoneModel.listUpdating
209− visible: running
201+ ActivityIndicator {
202+ anchors.centerIn: parent
203+ running: tzList.count == 0 &&
204+ searchField.length > 0 &&
205+ timeZoneModel.listUpdating
206+ visible: running
207+ }
210208 }
211209 }
212210