From f0eb59ed931492159a67b2b17b4618fd40fa9d11 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 7 Feb 2017 22:05:13 +0100 Subject: [PATCH] [Icon Applet] More sensible minimum height Take into account the label's height for minimum size. When we resize the applet super tiny, it's likely text wraps onto two lines, so use a two line text as minimum (it already does that for preferredHeight anyway). Differential Revision: https://phabricator.kde.org/D4477 --- applets/icon/package/contents/ui/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/icon/package/contents/ui/main.qml b/applets/icon/package/contents/ui/main.qml index 7ea118ca9..2093427b6 100644 --- a/applets/icon/package/contents/ui/main.qml +++ b/applets/icon/package/contents/ui/main.qml @@ -39,7 +39,7 @@ MouseArea { width: Math.round(units.iconSizes.desktop * 1.5) Layout.minimumWidth: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? height : units.iconSizes.small - Layout.minimumHeight: plasmoid.formFactor === PlasmaCore.Types.Vertical ? width : units.iconSizes.small + Layout.minimumHeight: plasmoid.formFactor === PlasmaCore.Types.Vertical ? width : (units.iconSizes.small + 2 * theme.mSize(theme.defaultFont).height) hoverEnabled: true