@@ -28,7 +28,6 @@ Item {
2828 readonly property alias headerHeight: header.height
2929
3030 property bool showHeader: true
31− readonly property bool inOverlay: template["overlay"] === true
3231
3332 implicitWidth: childrenRect.width
3433 implicitHeight: summary.y + summary.height + (summary.text && background.visible ? units.gu(1) : 0)
@@ -140,7 +139,6 @@ Item {
140139 CardHeader {
141140 id: header
142141 objectName: "cardHeader"
143−
144142 anchors {
145143 top: {
146144 if (template) {
@@ -163,9 +161,9 @@ Item {
163161 subtitle: cardData && cardData["subtitle"] || ""
164162
165163 opacity: showHeader ? 1 : 0
166− inOverlay: root.inOverlay
164+ inOverlay: template["overlay"] === true
167165 fontColor: inOverlay ? "white" : summary.getFontColor(background.color)
168− useMascotShape: !background.visible
166+ useMascotShape: !background.visible && !inOverlay
169167
170168 Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.SnapDuration } }
171169 }