Merge lp:~robru/gwibber/infuriating-margins into lp:gwibber

Proposed by Robert Bruce Park
Status: Merged
Approved by: Ken VanDine
Approved revision: 1432
Merged at revision: 1435
Proposed branch: lp:~robru/gwibber/infuriating-margins
Merge into: lp:gwibber
Diff against target: 77 lines (+9/-8)
3 files modified
qml/StatusUpdateTile.qml (+6/-5)
qml/StatusUpdateTileDetails.qml (+1/-1)
qml/TimeLine.qml (+2/-2)
To merge this branch: bzr merge lp:~robru/gwibber/infuriating-margins
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+155033@code.launchpad.net

Description of the change

This commit stops the protocol icons from overlapping the divider line after the details have been hidden, but it also gives the details view a goofily large margin (which is nicely sized when replies are present but comically large when there are no replies).

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/StatusUpdateTile.qml'
2--- qml/StatusUpdateTile.qml 2013-03-21 03:02:27 +0000
3+++ qml/StatusUpdateTile.qml 2013-03-22 18:23:27 +0000
4@@ -286,9 +286,6 @@
5 states: [State {
6 name: "Details"
7 PropertyChanges { target: tile; detailsOpacity: 1; x: 0 }
8- /* Looks like we don't need to resize to grow, but we do for reducing
9- PropertyChanges { target: content; height: status_update_content.height + detailsWrapper.height}
10- */
11 StateChangeScript {
12 script: {
13 listView.positionViewAtIndex(listView.indexAt(parent.x, parent.y) - 1, ListView.Contain);
14@@ -298,7 +295,10 @@
15 },
16 State {
17 name: "List"
18- PropertyChanges { target: content; height: status_update_content.height }
19+ PropertyChanges {
20+ target: content
21+ height: status_update_content.height + units.gu(2)
22+ }
23 PropertyChanges { target: tile; detailsOpacity: 0; x: 0 }
24 }]
25
26@@ -324,7 +324,7 @@
27
28 Item {
29 id: detailsWrapper
30- height: detailsLoader.height
31+ height: detailsLoader.height + units.gu(1)
32 width: parent.width
33 opacity: detailsOpacity
34 visible: detailsOpacity > 0 ? true : false
35@@ -338,6 +338,7 @@
36 Loader {
37 id: detailsLoader
38 width: parent.width
39+ visible: true
40 }
41
42 onVisibleChanged: {
43
44=== modified file 'qml/StatusUpdateTileDetails.qml'
45--- qml/StatusUpdateTileDetails.qml 2013-03-21 03:02:27 +0000
46+++ qml/StatusUpdateTileDetails.qml 2013-03-22 18:23:27 +0000
47@@ -22,7 +22,7 @@
48
49 Item {
50 id: details
51- height: visible ? entryArea.height + pictureWrapper.height + threadView.height + units.gu(3) : 0
52+ height: visible ? childrenRect.height + units.gu(1) : 0
53
54 property alias hasFocus: entryArea.activeFocus
55 onFocusChanged: {
56
57=== modified file 'qml/TimeLine.qml'
58--- qml/TimeLine.qml 2013-03-22 01:27:37 +0000
59+++ qml/TimeLine.qml 2013-03-22 18:23:27 +0000
60@@ -53,7 +53,7 @@
61 ThinDivider {}
62 }
63 }
64-
65+
66 StreamModel {
67 id: streamModel
68 }
69@@ -130,7 +130,7 @@
70 repeat: false
71 triggeredOnStart: false
72 running: false
73- onTriggered: {
74+ onTriggered: {
75 top();
76 }
77 }