on xenial help sign in
fix tryCard first item when removing the art
6872b58Albert Astals
plugins/Dash/CardCreator.js+3−5
@@ -377,7 +377,7 @@ function createCardComponent(parent, template, components) {
377 top: ' + summaryTopAnchor + '; \
377 top: ' + summaryTopAnchor + '; \
378 left: parent.left; \
378 left: parent.left; \
379 right: parent.right; \
379 right: parent.right; \
380− margins: backgroundLoader.active ? units.gu(1) : 0; \
380+ margins: units.gu(1); \
381 topMargin: ' + (hasMascot || hasSubtitle ? 'anchors.margins' : 0) + '; \
381 topMargin: ' + (hasMascot || hasSubtitle ? 'anchors.margins' : 0) + '; \
382 } \
382 } \
383 wrapMode: Text.Wrap; \
383 wrapMode: Text.Wrap; \
@@ -391,10 +391,8 @@ function createCardComponent(parent, template, components) {
391 }
391 }
392
392
393 // Close the AbstractButton
393 // Close the AbstractButton
394− if (hasSummary && hasBackground) {
394+ if (hasSummary) {
395− code += 'implicitHeight: summary.y + summary.height + (summary.text && backgroundLoader.active ? units.gu(1) : 0);';
395+ code += 'implicitHeight: summary.y + summary.height + (summary.text ? units.gu(1) : 0);';
396− } else if (hasSummary) {
397− code += 'implicitHeight: summary.y + summary.height;';
398 } else if (hasHeaderRow) {
396 } else if (hasHeaderRow) {
399 code += 'implicitHeight: row.y + row.height + units.gu(1);';
397 code += 'implicitHeight: row.y + row.height + units.gu(1);';
400 } else if (hasMascot) {
398 } else if (hasMascot) {