Merge lp:~ahayzen/music-app/fix-1514143-workaround into lp:music-app

Proposed by Andrew Hayzen
Status: Merged
Approved by: Victor Thompson
Approved revision: 941
Merged at revision: 941
Proposed branch: lp:~ahayzen/music-app/fix-1514143-workaround
Merge into: lp:music-app
Diff against target: 26 lines (+6/-0)
2 files modified
app/components/HeadState/SearchHeadState.qml (+5/-0)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~ahayzen/music-app/fix-1514143-workaround
Reviewer Review Type Date Requested Status
Victor Thompson Approve
Jenkins Bot continuous-integration Approve
Review via email: mp+277611@code.launchpad.net

Commit message

* Workaround for bug 1514143 by locking the header when searching

Description of the change

* Workaround for bug 1514143 by locking the header when searching

The issue comes from using a flickable with a movable header, so for now the header is made static when in searching mode.

To post a comment you must log in.
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

This looks good! Just one small inline comment.

review: Needs Fixing
940. By Andrew Hayzen

* Add code comment for fixed header height

941. By Andrew Hayzen

* Merge of trunk

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

LGTM!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/components/HeadState/SearchHeadState.qml'
--- app/components/HeadState/SearchHeadState.qml 2015-08-12 23:36:44 +0000
+++ app/components/HeadState/SearchHeadState.qml 2015-11-17 02:00:33 +0000
@@ -56,6 +56,11 @@
56 if (state === "default") {56 if (state === "default") {
57 searchField.text = ""57 searchField.text = ""
58 }58 }
59
60 // FIXME: Workaround for pad.lv/1514143 (keyboard show/hide on view moving)
61 // by locking the header and forcing a topMargin of page to the header height
62 headerState.head.locked = state === headerState.name;
63 thisPage.anchors.topMargin = state === headerState.name ? units.gu(6.125) : 0 // FIXME: 6.125 is header.height
59 }64 }
6065
61 onVisibleChanged: {66 onVisibleChanged: {
6267
=== modified file 'debian/changelog'
--- debian/changelog 2015-11-17 01:51:14 +0000
+++ debian/changelog 2015-11-17 02:00:33 +0000
@@ -15,6 +15,7 @@
1515
16 [ Andrew Hayzen ]16 [ Andrew Hayzen ]
17 * Switch to using the new uc1.3 listitems within the SDK17 * Switch to using the new uc1.3 listitems within the SDK
18 * Workaround for bug 1514143 by locking the header when searching (LP: #1514143)
1819
19 -- Bartosz Kosiorek <gang65@poczta.onet.pl> Tue, 08 Sep 2015 10:08:49 +020020 -- Bartosz Kosiorek <gang65@poczta.onet.pl> Tue, 08 Sep 2015 10:08:49 +0200
2021

Subscribers

People subscribed via source and target branches