on xenial help sign in
Fix height again.
commit27aabf64c71454f608fc30604edde189250fa733 authorYing-Chun Liu <paul.liu@canonical.com> dateThu 24 Jul 2014, 18:45 (12 years ago) parentdc13178
1 file changed+3−3
plugins/Dash/CardCreator.js+3−3
plugins/Dash/CardCreator.js+3−3
@@ -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'