@@ -377,7 +377,7 @@ function createCardComponent(parent, template, components) {
377377 top: ' + summaryTopAnchor + '; \
378378 left: parent.left; \
379379 right: parent.right; \
380− margins: backgroundLoader.active ? units.gu(1) : 0; \
380+ margins: units.gu(1); \
381381 topMargin: ' + (hasMascot || hasSubtitle ? 'anchors.margins' : 0) + '; \
382382 } \
383383 wrapMode: Text.Wrap; \
@@ -391,10 +391,8 @@ function createCardComponent(parent, template, components) {
391391 }
392392
393393 // Close the AbstractButton
394− if (hasSummary && hasBackground) {
395− code += 'implicitHeight: summary.y + summary.height + (summary.text && backgroundLoader.active ? units.gu(1) : 0);';
396− } else if (hasSummary) {
397− code += 'implicitHeight: summary.y + summary.height;';
394+ if (hasSummary) {
395+ code += 'implicitHeight: summary.y + summary.height + (summary.text ? units.gu(1) : 0);';
398396 } else if (hasHeaderRow) {
399397 code += 'implicitHeight: row.y + row.height + units.gu(1);';
400398 } else if (hasMascot) {