on xenial help sign in
Fix margins with background.
6a04e33Michał Sawicz
qml/Dash/Card.qml+2−2
@@ -29,7 +29,7 @@ Item {
29 property bool showHeader: true
29 property bool showHeader: true
30
30
31 implicitWidth: childrenRect.width
31 implicitWidth: childrenRect.width
32− implicitHeight: summary.y + summary.height
32+ implicitHeight: summary.y + summary.height + (background.visible ? units.gu(1) : 0)
33
33
34 UbuntuShape {
34 UbuntuShape {
35 id: background
35 id: background
@@ -171,7 +171,7 @@ Item {
171 top: header.visible ? header.bottom : artShape.bottom
171 top: header.visible ? header.bottom : artShape.bottom
172 left: parent.left
172 left: parent.left
173 right: parent.right
173 right: parent.right
174− margins: background.artAndSummary ? units.gu(1) : 0
174+ margins: background.visible ? units.gu(1) : 0
175 topMargin: 0
175 topMargin: 0
176 }
176 }
177 wrapMode: Text.Wrap
177 wrapMode: Text.Wrap