@@ -404,11 +404,11 @@ function cardString(template, components) {
404404 code += 'readonly property int headerHeight: mascotImage.height;\n'
405405 } else if (hasAttributes) {
406406 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'
408408 } 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'
410410 } else {
411− code += 'readonly property int headerHeight: attributesRow.height + attributesRow.anchors.topMargin;\n'
411+ code += 'readonly property int headerHeight: attributesRow.height;\n'
412412 }
413413 } else if (hasSubtitle) {
414414 code += 'readonly property int headerHeight: titleLabel.height + subtitleLabel.height + subtitleLabel.anchors.topMargin;\n'