Merge lp:~boiko/messaging-app/fix_header_after_sending_message into lp:messaging-app

Proposed by Gustavo Pichorim Boiko
Status: Merged
Approved by: Tiago Salem Herrmann
Approved revision: 527
Merged at revision: 533
Proposed branch: lp:~boiko/messaging-app/fix_header_after_sending_message
Merge into: lp:messaging-app
Diff against target: 34 lines (+4/-3)
2 files modified
src/qml/MainPage.qml (+3/-2)
tests/qml/tst_MMSDelegate.qml (+1/-1)
To merge this branch: bzr merge lp:~boiko/messaging-app/fix_header_after_sending_message
Reviewer Review Type Date Requested Status
Tiago Salem Herrmann (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+288153@code.launchpad.net

Commit message

Do not display the "new conversation" item when in single panel as this makes
the header scroll.

Description of the change

Do not display the "new conversation" item when in single panel as this makes
the header scroll.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
525. By Gustavo Pichorim Boiko

Do not scroll the list up when in single panel mode.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
526. By Gustavo Pichorim Boiko

Fix a test flakiness

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
527. By Gustavo Pichorim Boiko

Fix tryCompare usage

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Tiago Salem Herrmann (tiagosh) wrote :

looks good to me.
Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/qml/MainPage.qml'
2--- src/qml/MainPage.qml 2016-02-12 13:15:42 +0000
3+++ src/qml/MainPage.qml 2016-03-05 01:09:56 +0000
4@@ -230,7 +230,8 @@
5 header: ListItem.Standard {
6 id: newItem
7 height: mainView.bottomEdge.status === BottomEdge.Committed &&
8- !mainView.bottomEdge.showingConversation ? units.gu(10) : 0
9+ !mainView.bottomEdge.showingConversation &&
10+ mainView.dualPanel ? units.gu(10) : 0
11 text: i18n.tr("New message")
12 iconName: "message-new"
13 iconFrame: false
14@@ -306,7 +307,7 @@
15 target: threadList
16 property: 'contentY'
17 value: -threadList.headerItem.height
18- when: mainView.composingNewMessage
19+ when: mainView.composingNewMessage && mainView.dualPanel
20 }
21 }
22
23
24=== modified file 'tests/qml/tst_MMSDelegate.qml'
25--- tests/qml/tst_MMSDelegate.qml 2015-12-01 19:24:14 +0000
26+++ tests/qml/tst_MMSDelegate.qml 2016-03-05 01:09:56 +0000
27@@ -99,7 +99,7 @@
28 var image = findChild(mmsDelegate, "imageAttachment")
29 verify(image != null)
30 waitForRendering(image)
31- compare(image.source, "image://theme/image-missing")
32+ tryCompare(image, "source", "image://theme/image-missing")
33 }
34 }
35

Subscribers

People subscribed via source and target branches