[plasma/libplasma/Plasma/6.7] src/declarativeimports/plasmaextracomponents/qml: ExpandableListItem: resize properly when number of enabled contextual actions changes

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 671f06489f5383b59da04c190249bb920f2d2a37 by Nate Graham.
Committed on 25/07/2026 at 23:02.
Pushed by ngraham into branch 'Plasma/6.7'.

ExpandableListItem: resize properly when number of enabled contextual actions changes

See https://invent.kde.org/system/kup/-/merge_requests/53#note_1558079 for an example
of the behavior it fixes.

BUG: 506295
FIXED-IN: 6.7.4

Part of https://invent.kde.org/kde-linux/kde-linux/-/work_items/666


(cherry picked from commit a896f599639abb342082ba5525ef1034f7a4cb65)

dc61f5af ExpandableListItem: resize properly to changes in the number of (enabled) contextual actions

Co-authored-by: Bharadwaj Raju <[email protected]>

M  +3    -1    src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml

https://invent.kde.org/plasma/libplasma/-/commit/671f06489f5383b59da04c190249bb920f2d2a37

diff --git a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
index 786457068..893654e0f 100644
--- a/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
+++ b/src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
@@ -637,10 +637,12 @@ Item {
                         Layout.fillWidth: true
 
                         sourceComponent: Item {
-                            height: childrenRect.height
+                            implicitHeight: actionsListLayout.implicitHeight
                             width: actionsListLoader.width // basically, parent.width but null-proof
 
                             ColumnLayout {
+                                id: actionsListLayout
+
                                 anchors.top: parent.top
                                 anchors.left: parent.left
                                 anchors.right: parent.right
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.