@@ -119,6 +119,7 @@ Item {
119119 }
120120
121121 Label {
122+ id: titleLabel
122123 text: root.title
123124 anchors.horizontalCenter: parent.horizontalCenter
124125 anchors.top: iconShape.bottom
@@ -137,12 +138,8 @@ Item {
137138
138139 ActivityIndicator {
139140 id: spinner
140− anchors.centerIn: header.visible ? parent : undefined
141− anchors.verticalCenterOffset: header.visible ? header.height / 2 : 0
142−
143− anchors.horizontalCenter: header.visible ? undefined : parent.horizontalCenter
144− anchors.bottom: header.visible ? undefined : parent.bottom
145− anchors.bottomMargin: header.visible ? 0 : units.gu(12)
141+ anchors.centerIn: parent
142+ anchors.verticalCenterOffset: header.visible ? header.height / 2 : Math.max(titleLabel.y / 2, units.gu(8))
146143 }
147144
148145 MouseArea {