correct item resize

comment out more old api

will be reenable one by one only when needed
wilder-5.14
Marco Martin 13 years ago
parent a051a4ae8d
commit c4bb009c05
  1. 10
      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

Loading…
Cancel
Save