@@ -640,9 +640,7 @@ function cardString(template, components) {
640 } else if (hasArt) {
640 } else if (hasArt) {
641 implicitHeight += 'artShapeHolder.height;\n';
641 implicitHeight += 'artShapeHolder.height;\n';
643− // No implicit height, close
643+ implicitHeight = '';
648 // Close the AbstractButton
646 // Close the AbstractButton
@@ -658,11 +656,9 @@ function createCardComponent(parent, template, components) {
658 var card = cardString(template, components);
656 var card = cardString(template, components);
659 var code = imports + 'Component {\n' + card + '}\n';
657 var code = imports + 'Component {\n' + card + '}\n';
663 return Qt.createQmlObject(code, parent, "createCardComponent");
660 return Qt.createQmlObject(code, parent, "createCardComponent");
664 } catch (e) {
661 } catch (e) {
666 console.error("ERROR: Invalid component created.");
662 console.error("ERROR: Invalid component created.");
667 console.error("Template:");
663 console.error("Template:");
668 console.error(JSON.stringify(template));
664 console.error(JSON.stringify(template));