@@ -22,6 +22,7 @@ import "../Components/ListItems" as ListItems
2222ScopeView {
2323 id: scopeView
2424 readonly property alias previewShown: previewLoader.onScreen
25+ property bool enableHeightBehaviorOnNextCreation: false
2526
2627 onIsCurrentChanged: {
2728 pageHeader.resetSearch();
@@ -88,6 +89,10 @@ ScopeView {
8889 source: getRenderer(model.renderer, model.contentType)
8990
9091 onLoaded: {
92+ if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
93+ item.enableHeightBehavior = scopeView.enableHeightBehaviorOnNextCreation;
94+ scopeView.enableHeightBehaviorOnNextCreation = false;
95+ }
9196 if (source.toString().indexOf("Apps/RunningApplicationsGrid.qml") != -1) {
9297 // TODO: the running apps grid doesn't support standard scope results model yet
9398 item.firstModel = Qt.binding(function() { return results.firstModel })
@@ -104,6 +109,12 @@ ScopeView {
104109 }
105110 }
106111
112+ Component.onDestruction: {
113+ if (item.enableHeightBehavior !== undefined && item.enableHeightBehaviorOnNextCreation !== undefined) {
114+ scopeView.enableHeightBehaviorOnNextCreation = item.enableHeightBehaviorOnNextCreation;
115+ }
116+ }
117+
107118 Connections {
108119 target: rendererLoader.item
109120 onClicked: {