From e4014bd0ba3d827f7e0dc1220698286cf482b3b3 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 16 Jul 2020 13:48:53 +0200 Subject: [PATCH] fix widget explorer --- shell/contents/views/Desktop.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index ee7088b6..961853ec 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -43,7 +43,7 @@ Rectangle { if (widgetExplorerStack.source != "") { widgetExplorerStack.source = ""; } else { - widgetExplorerStack.setSource(Qt.resolvedUrl("../explorer/WidgetExplorer.qml"), {"containment": containment, "containmentInterface": root.containment}) + widgetExplorerStack.setSource(desktop.fileFromPackage("explorer", "WidgetExplorer.qml"), {"containment": containment, "containmentInterface": root.containment}) } } @@ -51,7 +51,9 @@ Rectangle { id: widgetExplorerStack z: 99 asynchronous: true - anchors.fill: parent + y: containment ? containment.availableScreenRect.y : 0 + height: containment ? containment.availableScreenRect.height : parent.height + width: parent.width onLoaded: { if (widgetExplorerStack.item) {