@@ -31,6 +31,7 @@ LocalComponents.Page {
31 forwardButtonSourceComponent: forwardButton
31 forwardButtonSourceComponent: forwardButton
33 property string selectedTimeZone: ""
33 property string selectedTimeZone: ""
34+ readonly property bool showingMap: desktopLook && width >= units.gu(110)
35 // for testing
36 // for testing
36 readonly property alias tdModule: timeDatePanel
37 readonly property alias tdModule: timeDatePanel
@@ -161,9 +162,9 @@ LocalComponents.Page {
161 left: content.left
162 left: content.left
162 top: content.top
163 top: content.top
163 bottom: content.bottom
164 bottom: content.bottom
164− right: !desktopLook ? content.right : undefined
165+ right: !showingMap ? content.right : undefined
165− leftMargin: desktopLook ? staticMargin : 0
166+ leftMargin: showingMap ? staticMargin : (desktopLook ? tzPage.leftMargin : 0)
166− rightMargin: desktopLook ? staticMargin : 0
167+ rightMargin: showingMap ? staticMargin : (desktopLook ? tzPage.rightMargin : 0)
167 topMargin: customMargin
168 topMargin: customMargin
@@ -174,8 +175,8 @@ LocalComponents.Page {
174 objectName: "tzFilter"
175 objectName: "tzFilter"
175 anchors.left: parent.left
176 anchors.left: parent.left
176 anchors.right: parent.right
177 anchors.right: parent.right
177− anchors.leftMargin: !desktopLook ? staticMargin : 0
178+ anchors.leftMargin: !showingMap && !desktopLook ? staticMargin : undefined
178− anchors.rightMargin: !desktopLook ? staticMargin : 0
179+ anchors.rightMargin: !showingMap && !desktopLook ? staticMargin : undefined
179 placeholderText: i18n.tr("Enter your city")
180 placeholderText: i18n.tr("Enter your city")
180 inputMethodHints: Qt.ImhNoPredictiveText
181 inputMethodHints: Qt.ImhNoPredictiveText
181 onTextChanged: resetViews();
182 onTextChanged: resetViews();
@@ -183,10 +184,11 @@ LocalComponents.Page {
184 ListView {
185 ListView {
185 Layout.fillHeight: true
186 Layout.fillHeight: true
186− Layout.fillWidth: true
187 id: tzList
187 id: tzList
188 objectName: "tzList"
188 objectName: "tzList"
189 clip: true
189 clip: true
190+ anchors.left: parent.left
191+ anchors.right: parent.right
190 currentIndex: -1
192 currentIndex: -1
191 model: TimeZoneModel {
193 model: TimeZoneModel {
192 id: timeZoneModel
194 id: timeZoneModel
@@ -207,7 +209,7 @@ LocalComponents.Page {
209 id: mapContainer
211 id: mapContainer
210− visible: desktopLook && !contentAnimationRunning
212+ visible: showingMap && !contentAnimationRunning
211 enabled: visible
213 enabled: visible
213 anchors {
215 anchors {