@@ -404,11 +404,11 @@ function cardString(template, components) {
404 code += 'readonly property int headerHeight: mascotImage.height;\n'
404 code += 'readonly property int headerHeight: mascotImage.height;\n'
405 } else if (hasAttributes) {
405 } else if (hasAttributes) {
406 if (hasTitle && hasSubtitle) {
406 if (hasTitle && hasSubtitle) {
407− code += 'readonly property int headerHeight: titleLabel.height + titleLabel.anchors.topMargin + subtitleLabel.height + subtitleLabel.anchors.topMargin + attributesRow.height + attributesRow.anchors.topMargin;\n'
407+ code += 'readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin + attributesRow.height + attributesRow.anchors.topMargin;\n'
408 } else if (hasTitle) {
408 } else if (hasTitle) {
409− code += 'readonly property int headerHeight: titleLabel.height + titleLabel.anchors.topMargin + attributesRow.height + attributesRow.anchors.topMargin;\n'
409+ code += 'readonly property int headerHeight: titleLabel.height + attributesRow.height + attributesRow.anchors.topMargin;\n'
411− code += 'readonly property int headerHeight: attributesRow.height + attributesRow.anchors.topMargin;\n'
411+ code += 'readonly property int headerHeight: attributesRow.height;\n'
413 } else if (hasSubtitle) {
413 } else if (hasSubtitle) {
414 code += 'readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin;\n'
414 code += 'readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin;\n'