From c4bb009c05795713f18fb726a9a5d174cd79f98a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 20 Feb 2013 15:51:28 +0100 Subject: [PATCH] correct item resize comment out more old api will be reenable one by one only when needed --- qmlpackages/desktop/contents/ui/CompactApplet.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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