[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
wilder-5.14
Kai Uwe Broulik 9 years ago
parent 7b1dc9a4bb
commit f0eb59ed93
  1. 2
      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

Loading…
Cancel
Save