@@ -193,25 +193,23 @@ function createCardComponent(parent, template, components) {
193193 }
194194
195195 var headerVerticalAnchors;
196− if (isHorizontal) {
197− headerVerticalAnchors = 'anchors.top: artShapeHolder.top; \
198− anchors.topMargin: units.gu(1);';
196+ if (inOverlay) {
197+ headerVerticalAnchors = 'anchors.bottom: artShapeHolder.bottom; \
198+ anchors.bottomMargin: units.gu(1);';
199199 } else {
200− if (inOverlay) {
201− headerVerticalAnchors = 'anchors.bottom: artShapeHolder.bottom; \
202− anchors.bottomMargin: units.gu(1);';
203− } else {
204− if (hasArt) {
205− headerVerticalAnchors = 'anchors.top: artShapeHolder.bottom; \
200+ if (hasArt) {
201+ if (isHorizontal) {
202+ headerVerticalAnchors = 'anchors.top: artShapeHolder.top; \
206203 anchors.topMargin: units.gu(1);';
207204 } else {
208− headerVerticalAnchors = 'anchors.top: parent.top; \
205+ headerVerticalAnchors = 'anchors.top: artShapeHolder.bottom; \
209206 anchors.topMargin: units.gu(1);';
210− }
207+ } else {
208+ headerVerticalAnchors = 'anchors.top: parent.top; \
209+ anchors.topMargin: units.gu(1);';
211210 }
212211 }
213212
214−
215213 if (hasMascot) {
216214 var useMascotShape = !hasBackground && !inOverlay;
217215 var anchors = "";