Use art height as implicitHeight when the header is overlayed
commit1a48b1883d968e43bda2167513adf16d0fb708e2
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 11 May 2015, 13:20 (11 years ago)
parent82841c4
plugins/Dash/CardCreator.js+2
@@ -631,6 +631,8 @@ function cardString(template, components) {
631631 var implicitHeight = 'implicitHeight: ';
632632 if (hasSummary) {
633633 implicitHeight += 'summary.y + summary.height + units.gu(1);\n';
634+ } else if (headerAsOverlay) {
635+ implicitHeight += 'artShapeHolder.height;\n';
634636 } else if (hasHeaderRow) {
635637 implicitHeight += 'row.y + row.height + units.gu(1);\n';
636638 } else if (hasMascot) {
tests/plugins/Dash/cardcreator/5.res+1−1
@@ -150,5 +150,5 @@ UbuntuShape {
150150 radius: "medium";
151151 borderSource: "radius_pressed.sci"
152152}
153−implicitHeight: subtitleLabel.y + subtitleLabel.height + units.gu(1);
153+implicitHeight: artShapeHolder.height;
154154}