Merge lp:~vthompson/ubuntu-weather-app/fix-1490044-locationspage-flickable into lp:ubuntu-weather-app

Proposed by Victor Thompson
Status: Merged
Approved by: Andrew Hayzen
Approved revision: 113
Merged at revision: 119
Proposed branch: lp:~vthompson/ubuntu-weather-app/fix-1490044-locationspage-flickable
Merge into: lp:ubuntu-weather-app
Diff against target: 33 lines (+3/-2)
2 files modified
app/ui/LocationsPage.qml (+2/-2)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~vthompson/ubuntu-weather-app/fix-1490044-locationspage-flickable
Reviewer Review Type Date Requested Status
Andrew Hayzen Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+269585@code.launchpad.net

Commit message

* Allow the LocationsPage to be flickable.

Description of the change

* Allow the LocationsPage to be flickable.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

One inline comment, otherwise it fixes the issue of the content appearing in the bg of the header

review: Needs Information
112. By Victor Thompson

Use header height

Revision history for this message
Victor Thompson (vthompson) wrote :

The behavior seems a bit different on a 15.10 desktop vs the device. On 15.10 the offset doesn't appear to be needed. I think we'll eventually need to remove this offset when whatever on wily fixes this lands in vivid.

113. By Victor Thompson

Merge and resolve conflict

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM on vivid desktop. I investigated before trying to fix it so that the header is shown/hidden when scrolling, but that broke other things, this should be investigated at a later stage.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/ui/LocationsPage.qml'
--- app/ui/LocationsPage.qml 2015-08-19 22:44:54 +0000
+++ app/ui/LocationsPage.qml 2015-09-05 22:55:00 +0000
@@ -26,8 +26,6 @@
26Page {26Page {
27 id: locationsPage27 id: locationsPage
28 objectName: "locationsPage"28 objectName: "locationsPage"
29 // Set to null otherwise the first delegate appears +header.height down the page
30 flickable: null
31 title: i18n.tr("Locations")29 title: i18n.tr("Locations")
3230
33 state: locationsListView.state === "multiselectable" ? "selection" : "default"31 state: locationsListView.state === "multiselectable" ? "selection" : "default"
@@ -64,6 +62,8 @@
64 id: locationsListView62 id: locationsListView
65 anchors {63 anchors {
66 fill: parent64 fill: parent
65 // TODO: Fix this offset
66 topMargin: -locationsPage.header.height
67 }67 }
68 model: ListModel {68 model: ListModel {
69 id: locationsModel69 id: locationsModel
7070
=== modified file 'debian/changelog'
--- debian/changelog 2015-09-04 23:04:30 +0000
+++ debian/changelog 2015-09-05 22:55:00 +0000
@@ -24,6 +24,7 @@
24 * Lock app in portrait mode24 * Lock app in portrait mode
25 * Get the condition text to be translated from the OWM API. (LP: #1487793)25 * Get the condition text to be translated from the OWM API. (LP: #1487793)
26 * Add a Network Error State Component for when a connection error takes place.26 * Add a Network Error State Component for when a connection error takes place.
27 * Allow the LocationsPage to be flickable. (LP: #1490044)
2728
28 [ Andrew Hayzen ]29 [ Andrew Hayzen ]
29 * Add mocked locations for autopilot and add a test using the data30 * Add mocked locations for autopilot and add a test using the data

Subscribers

People subscribed via source and target branches

to all changes: