Blob Blame History Raw
From e164ae7c02f5579e02d26842bee6a4a450e01871 Mon Sep 17 00:00:00 2001
From: Wolfgang Bauer <wbauer@tmo.at>
Date: Sat, 26 Mar 2016 15:46:19 +0100
Subject: [PATCH] [showdesktop] Fix sizing of the plasmoid in the panel

Since 5.6, if you add a "Show Desktop" plasmoid to the panel, the
panel's layout gets completely broken (apparently the plasmoid is sized
to infinity).
This sets the minimum size to sane values which fixes the problem.

(Note that this is for the 5.6 branch only, the problem doesn't exist in
 master)

FIXED-IN: 5.6.1
REVIEW: 127499
---
 applets/showdesktop/package/contents/ui/main.qml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applets/showdesktop/package/contents/ui/main.qml b/applets/showdesktop/package/contents/ui/main.qml
index 2117dd5..cdf8387 100644
--- a/applets/showdesktop/package/contents/ui/main.qml
+++ b/applets/showdesktop/package/contents/ui/main.qml
@@ -33,8 +33,8 @@ Item {
 
     property bool vertical: (plasmoid.formFactor == PlasmaCore.Types.Vertical)
 
-    Layout.minimumWidth: Layout.maximumWidth
-    Layout.minimumHeight: Layout.maximumHeight
+    Layout.minimumWidth: units.iconSizes.small
+    Layout.minimumHeight: Layout.minimumWidth
 
     Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
     Plasmoid.onActivated: showdesktop.showDesktop();
-- 
2.7.3