Merge lp:~unity-team/unity8/fix-card-implicitHeight into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1246
Merged at revision: 1344
Proposed branch: lp:~unity-team/unity8/fix-card-implicitHeight
Merge into: lp:unity8
Prerequisite: lp:~unity-team/unity8/card-visual-tweaks
Diff against target: 50 lines (+6/-5)
3 files modified
plugins/Dash/CardCreator.js (+1/-1)
qml/Components/ResponsiveVerticalJournal.qml (+3/-2)
qml/Dash/DashRenderer.qml (+2/-2)
To merge this branch: bzr merge lp:~unity-team/unity8/fix-card-implicitHeight
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Albert Astals Cid (community) Approve
Review via email: mp+236834@code.launchpad.net

Commit message

Fix card implicitHeight when summary is declared, but its text is empty. Also fixes vertical journal height and clipping

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
No
 * Did you perform an exploratory manual test run of your code change and any related functionality?
Of course
 * Did you make sure that your branch does not contain spurious tags?
Yes
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass?
CI is taking a nap

 * Did you make sure that the branch does not contain spurious tags?
Yes

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/Dash/CardCreator.js'
2--- plugins/Dash/CardCreator.js 2014-10-02 11:08:44 +0000
3+++ plugins/Dash/CardCreator.js 2014-10-02 11:08:44 +0000
4@@ -627,7 +627,7 @@
5
6 var implicitHeight = 'implicitHeight: ';
7 if (hasSummary) {
8- implicitHeight += 'summary.y + summary.height + (summary.text ? units.gu(1) : 0);\n';
9+ implicitHeight += 'summary.y + summary.height + units.gu(1);\n';
10 } else if (hasHeaderRow) {
11 implicitHeight += 'row.y + row.height + units.gu(1);\n';
12 } else if (hasMascot) {
13
14=== modified file 'qml/Components/ResponsiveVerticalJournal.qml'
15--- qml/Components/ResponsiveVerticalJournal.qml 2014-06-20 10:06:50 +0000
16+++ qml/Components/ResponsiveVerticalJournal.qml 2014-10-02 11:08:44 +0000
17@@ -47,7 +47,9 @@
18 property alias delegate: verticalJournalView.delegate
19 property alias displayMarginBeginning: verticalJournalView.displayMarginBeginning
20 property alias displayMarginEnd: verticalJournalView.displayMarginEnd
21- implicitHeight: verticalJournalView.implicitHeight
22+
23+ implicitHeight: verticalJournalView.implicitHeight + rowSpacing
24+ clip: height < implicitHeight
25
26 VerticalJournal {
27 id: verticalJournalView
28@@ -59,7 +61,6 @@
29 topMargin: rowSpacing / 2
30 bottomMargin: rowSpacing / 2
31 }
32- clip: parent.height != implicitHeight
33
34 function px2gu(pixels) {
35 return Math.floor(pixels / units.gu(1))
36
37=== modified file 'qml/Dash/DashRenderer.qml'
38--- qml/Dash/DashRenderer.qml 2014-10-02 11:08:44 +0000
39+++ qml/Dash/DashRenderer.qml 2014-10-02 11:08:44 +0000
40@@ -17,9 +17,9 @@
41 import QtQuick 2.0
42
43 Item {
44- property int collapsedHeight
45+ property real collapsedHeight
46
47- property int expandedHeight
48+ property real expandedHeight
49
50 property int collapsedItemCount: -1
51

Subscribers

People subscribed via source and target branches