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
=== modified file 'src/qml/MainPage.qml'
--- src/qml/MainPage.qml 2016-02-12 13:15:42 +0000
+++ src/qml/MainPage.qml 2016-03-05 01:09:56 +0000
@@ -230,7 +230,8 @@
230 header: ListItem.Standard {230 header: ListItem.Standard {
231 id: newItem231 id: newItem
232 height: mainView.bottomEdge.status === BottomEdge.Committed &&232 height: mainView.bottomEdge.status === BottomEdge.Committed &&
233 !mainView.bottomEdge.showingConversation ? units.gu(10) : 0233 !mainView.bottomEdge.showingConversation &&
234 mainView.dualPanel ? units.gu(10) : 0
234 text: i18n.tr("New message")235 text: i18n.tr("New message")
235 iconName: "message-new"236 iconName: "message-new"
236 iconFrame: false237 iconFrame: false
@@ -306,7 +307,7 @@
306 target: threadList307 target: threadList
307 property: 'contentY'308 property: 'contentY'
308 value: -threadList.headerItem.height309 value: -threadList.headerItem.height
309 when: mainView.composingNewMessage310 when: mainView.composingNewMessage && mainView.dualPanel
310 }311 }
311 }312 }
312313
313314
=== modified file 'tests/qml/tst_MMSDelegate.qml'
--- tests/qml/tst_MMSDelegate.qml 2015-12-01 19:24:14 +0000
+++ tests/qml/tst_MMSDelegate.qml 2016-03-05 01:09:56 +0000
@@ -99,7 +99,7 @@
99 var image = findChild(mmsDelegate, "imageAttachment")99 var image = findChild(mmsDelegate, "imageAttachment")
100 verify(image != null)100 verify(image != null)
101 waitForRendering(image)101 waitForRendering(image)
102 compare(image.source, "image://theme/image-missing")102 tryCompare(image, "source", "image://theme/image-missing")
103 }103 }
104 }104 }
105105

Subscribers

People subscribed via source and target branches