diff --git a/applets/analog-clock/contents/ui/analogclock.qml b/applets/analog-clock/contents/ui/analogclock.qml index 1f549becf..f68869bb5 100644 --- a/applets/analog-clock/contents/ui/analogclock.qml +++ b/applets/analog-clock/contents/ui/analogclock.qml @@ -29,9 +29,9 @@ import "plasmapackage:/code/logic.js" as Logic Item { id: analogclock - Layout.minimumWidth: plasmoid.formFactor != PlasmaCore.Types.Vertical ? analogclock.height : units.gridUnit - Layout.minimumHeight: plasmoid.formFactor == PlasmaCore.Types.Vertical ? analogclock.width : units.gridUnit + width: units.gridUnit * 15 + height: units.gridUnit * 15 property int hours property int minutes property int seconds @@ -55,6 +55,10 @@ Item { } Plasmoid.compactRepresentation: Item { + id: representation + Layout.minimumWidth: plasmoid.formFactor != PlasmaCore.Types.Vertical ? representation.height : units.gridUnit + Layout.minimumHeight: plasmoid.formFactor == PlasmaCore.Types.Vertical ? representation.width : units.gridUnit + MouseArea { anchors.fill: parent onClicked: plasmoid.expanded = !plasmoid.expanded diff --git a/applets/digital-clock/package/contents/ui/main.qml b/applets/digital-clock/package/contents/ui/main.qml index ffa55f0a8..3e70d9163 100644 --- a/applets/digital-clock/package/contents/ui/main.qml +++ b/applets/digital-clock/package/contents/ui/main.qml @@ -27,6 +27,8 @@ import org.kde.plasma.private.digitalclock 1.0 Item { id: main + width: units.gridUnit * 10 + height: units.gridUnit * 4 property string dateFormatString: setDateFormatString() Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation