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
=== modified file 'plugins/Dash/CardCreator.js'
--- plugins/Dash/CardCreator.js 2014-10-02 11:08:44 +0000
+++ plugins/Dash/CardCreator.js 2014-10-02 11:08:44 +0000
@@ -627,7 +627,7 @@
627627
628 var implicitHeight = 'implicitHeight: ';628 var implicitHeight = 'implicitHeight: ';
629 if (hasSummary) {629 if (hasSummary) {
630 implicitHeight += 'summary.y + summary.height + (summary.text ? units.gu(1) : 0);\n';630 implicitHeight += 'summary.y + summary.height + units.gu(1);\n';
631 } else if (hasHeaderRow) {631 } else if (hasHeaderRow) {
632 implicitHeight += 'row.y + row.height + units.gu(1);\n';632 implicitHeight += 'row.y + row.height + units.gu(1);\n';
633 } else if (hasMascot) {633 } else if (hasMascot) {
634634
=== modified file 'qml/Components/ResponsiveVerticalJournal.qml'
--- qml/Components/ResponsiveVerticalJournal.qml 2014-06-20 10:06:50 +0000
+++ qml/Components/ResponsiveVerticalJournal.qml 2014-10-02 11:08:44 +0000
@@ -47,7 +47,9 @@
47 property alias delegate: verticalJournalView.delegate47 property alias delegate: verticalJournalView.delegate
48 property alias displayMarginBeginning: verticalJournalView.displayMarginBeginning48 property alias displayMarginBeginning: verticalJournalView.displayMarginBeginning
49 property alias displayMarginEnd: verticalJournalView.displayMarginEnd49 property alias displayMarginEnd: verticalJournalView.displayMarginEnd
50 implicitHeight: verticalJournalView.implicitHeight50
51 implicitHeight: verticalJournalView.implicitHeight + rowSpacing
52 clip: height < implicitHeight
5153
52 VerticalJournal {54 VerticalJournal {
53 id: verticalJournalView55 id: verticalJournalView
@@ -59,7 +61,6 @@
59 topMargin: rowSpacing / 261 topMargin: rowSpacing / 2
60 bottomMargin: rowSpacing / 262 bottomMargin: rowSpacing / 2
61 }63 }
62 clip: parent.height != implicitHeight
6364
64 function px2gu(pixels) {65 function px2gu(pixels) {
65 return Math.floor(pixels / units.gu(1))66 return Math.floor(pixels / units.gu(1))
6667
=== modified file 'qml/Dash/DashRenderer.qml'
--- qml/Dash/DashRenderer.qml 2014-10-02 11:08:44 +0000
+++ qml/Dash/DashRenderer.qml 2014-10-02 11:08:44 +0000
@@ -17,9 +17,9 @@
17import QtQuick 2.017import QtQuick 2.0
1818
19Item {19Item {
20 property int collapsedHeight20 property real collapsedHeight
2121
22 property int expandedHeight22 property real expandedHeight
2323
24 property int collapsedItemCount: -124 property int collapsedItemCount: -1
2525

Subscribers

People subscribed via source and target branches