File 0001-Set-and-use-implicitHeight-instead-of-height.patch of Package plasma5-pk-updates

From 7a87a537b4f2e499ba2782a7c39223e89ba95575 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Mon, 11 Apr 2022 17:07:13 +0200
Subject: [PATCH] Set and use implicitHeight instead of height

"height" is the effective value and this kind of use can result in binding
loops and wrong results. Use implicitHeight instead to get correct and
reliable calculations.
---
 src/plasma/contents/ui/PackageDelegate.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plasma/contents/ui/PackageDelegate.qml b/src/plasma/contents/ui/PackageDelegate.qml
index 6aa2d17..dd842a1 100644
--- a/src/plasma/contents/ui/PackageDelegate.qml
+++ b/src/plasma/contents/ui/PackageDelegate.qml
@@ -34,7 +34,7 @@ PlasmaExtras.ListItem {
 
     signal checkStateChanged(bool checked)
 
-    height: innerLayout.height + (units.smallSpacing * 2)
+    implicitHeight: innerLayout.implicitHeight + (units.smallSpacing * 2)
     enabled: true
     checked: containsMouse || expanded
     // The binding is overwritten on clicks, as this is for some reason a Button
-- 
2.35.1

openSUSE Build Service is sponsored by