@@ -863,20 +863,18 @@ function cardString(template, components, isCardTool) {
863 var socialAnchors;
863 var socialAnchors;
864 var socialTopAnchor;
864 var socialTopAnchor;
867− socialTopAnchor = 'summary.bottom;';
866+ if (hasSummary) socialTopAnchor = 'summary.bottom;';
869− if (isHorizontal && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
867+ else if (isHorizontal && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
870− else if (headerAsOverlay && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
868+ else if (headerAsOverlay && hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
871− else if (hasHeaderRow) socialTopAnchor = 'row.bottom;';
869+ else if (hasHeaderRow) socialTopAnchor = 'row.bottom;';
872− else if (hasTitleContainer) socialTopAnchor = 'headerTitleContainer.bottom;';
870+ else if (hasTitleContainer) socialTopAnchor = 'headerTitleContainer.bottom;';
873− else if (hasMascot) socialTopAnchor = 'mascotImage.bottom;';
871+ else if (hasMascot) socialTopAnchor = 'mascotImage.bottom;';
874− else if (hasAttributes) socialTopAnchor = 'attributesRow.bottom;';
872+ else if (hasAttributes) socialTopAnchor = 'attributesRow.bottom;';
875− else if (hasSubtitle) socialTopAnchor = 'subtitleLabel.bottom;';
873+ else if (hasSubtitle) socialTopAnchor = 'subtitleLabel.bottom;';
876− else if (hasTitle) socialTopAnchor = 'titleLabel.bottom;';
874+ else if (hasTitle) socialTopAnchor = 'titleLabel.bottom;';
877− else if (hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
875+ else if (hasArt) socialTopAnchor = 'artShapeHolder.bottom;';
878− else socialTopAnchor = 'parent.top';
876+ else socialTopAnchor = 'parent.top';
880 socialAnchors = 'top: ' + socialTopAnchor + ' left: parent.left; right: parent.right; topMargin: units.gu(1);'
878 socialAnchors = 'top: ' + socialTopAnchor + ' left: parent.left; right: parent.right; topMargin: units.gu(1);'
882 var socialColor;
880 var socialColor;