fix widget explorer

This commit is contained in:
Marco Martin 2020-07-16 13:48:53 +02:00
parent 96f4e7be53
commit e4014bd0ba

View file

@ -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) {