@@ -24,7 +24,7 @@ import "../Components"
2424Item {
2525 id: root
2626 objectName: "pageHeader"
27− implicitHeight: headerContainer.height + bottomContainer.height + signatureLineHeight
27+ implicitHeight: headerContainer.height + signatureLineHeight
2828 readonly property real signatureLineHeight: showSignatureLine ? units.gu(2) : 0
2929
3030 property bool showBackButton: false
@@ -43,7 +43,6 @@ Item {
4343 property alias searchHint: searchTextField.placeholderText
4444 property bool showSignatureLine: true
4545
46− property alias bottomItem: bottomContainer.children
4746 property int paginationCount: 0
4847 property int paginationIndex: -1
4948
@@ -127,9 +126,10 @@ Item {
127126 }
128127
129128 InverseMouseArea {
130− anchors { fill: parent; margins: units.gu(1); bottomMargin: units.gu(3) + bottomContainer.height }
129+ anchors { fill: parent; margins: units.gu(1); bottomMargin: units.gu(3) + (extraPanel ? extraPanel.height : 0) }
131130 visible: headerContainer.showSearch
132131 onPressed: {
132+ extraPanel.visible = false;
133133 closePopup(/* keepFocus */false);
134134 mouse.accepted = false;
135135 }
@@ -276,7 +276,6 @@ Item {
276276 property color panelColor: background.topColor
277277 panelForegroundColor: config.foregroundColor
278278 config: PageHeadConfiguration {
279− title: root.title
280279 foregroundColor: root.scopeStyle ? root.scopeStyle.headerForeground : theme.palette.normal.baseText
281280 backAction: Action {
282281 iconName: backIsClose ? "close" : "back"
@@ -326,7 +325,7 @@ Item {
326325 right: parent.right
327326 verticalCenter: parent.verticalCenter
328327 }
329− text: header.title
328+ text: root.title
330329 font.weight: header.fontWeight
331330 fontSize: header.fontSize
332331 color: header.panelForegroundColor
@@ -372,7 +371,7 @@ Item {
372371 top: headerContainer.bottom
373372 left: parent.left
374373 right: parent.right
375− bottom: bottomContainer.top
374+ bottom: parent.bottom
376375 }
377376
378377 color: root.scopeStyle ? root.scopeStyle.headerDividerColor : "#e0e0e0"
@@ -413,7 +412,7 @@ Item {
413412 id: bottomHighlight
414413 visible: bottomBorder.visible
415414 anchors {
416− top: bottomContainer.top
415+ top: parent.bottom
417416 left: parent.left
418417 right: parent.right
419418 }
@@ -436,15 +435,4 @@ Item {
436435 } else "#CCFFFFFF"
437436 }
438437 }
439−
440− Item {
441− id: bottomContainer
442−
443− anchors {
444− left: parent.left
445− right: parent.right
446− bottom: parent.bottom
447− }
448− height: childrenRect.height
449− }
450438}