diff --git a/qmlpackages/desktop/contents/ui/CompactApplet.qml b/qmlpackages/desktop/contents/ui/CompactApplet.qml index 57a255ac2..3ef02ae90 100644 --- a/qmlpackages/desktop/contents/ui/CompactApplet.qml +++ b/qmlpackages/desktop/contents/ui/CompactApplet.qml @@ -29,7 +29,10 @@ Item { property Item compactRepresentation - onAppletChanged: applet.parent = appletParent + onAppletChanged: { + applet.parent = appletParent + applet.anchors.fill = applet.parent + } onCompactRepresentationChanged: { compactRepresentation.parent = root compactRepresentation.anchors.fill = root @@ -46,11 +49,12 @@ Item { plasmoid.expanded = false } } - onWidthChanged: appletParent.width = width - onHeightChanged:appletParent.height = height + //onWidthChanged: appletParent.width = width + //onHeightChanged:appletParent.height = height mainItem: appletParent Rectangle { id: appletParent + radius: 10 width: 200//applet.implicitWidth height: 200//applet.implicitHeight onWidthChanged: applet.width = width