Commit fd7a2e7c authored by Marco Martin's avatar Marco Martin

keep applet expanded when only one

parent 8f826e5d
......@@ -33,6 +33,8 @@ Item {
Plasmoid.preferredRepresentation: plasmoid.fullRepresentation
Layout.minimumHeight: flow.implicitHeight + units.largeSpacing*2
ListModel {
id: settingsModel
......
......@@ -126,7 +126,7 @@ PlasmaCore.ColorScope {
left: parent.left
right: parent.right
}
height: applet && applet.expanded ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
height: applet && (applet.expanded || plasmoid.applets.count == 1) ? Math.max(applet.fullRepresentationItem.Layout.minimumHeight, units.iconSizes.medium) : units.iconSizes.medium
Behavior on height {
NumberAnimation {
duration: units.shortDuration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment