[plasma/libplasma] 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 a896f599639abb342082ba5525ef1034f7a4cb65 by Nate Graham, on behalf of Bharadwaj Raju.
Committed on 25/07/2026 at 23:01.
Pushed by ngraham into branch 'master'.

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

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

https://invent.kde.org/plasma/libplasma/-/commit/a896f599639abb342082ba5525ef1034f7a4cb65

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.