Bug 506295

Summary: Expanded area highlight does not match height of child actions list when any actions are enabled or disabled at runtime
Product: [Frameworks and Libraries] libplasma Reporter: medin <med.medin.2014>
Component: componentsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: akopov4, ivan.cukic, kdedev, nate, notmart
Priority: NOR Keywords: regression
Version First Reported In: 6.4.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.7.4
Sentry Crash Report:
Attachments: Configure Vault entry is not grouped
image2

Description medin 2025-06-27 22:13:20 UTC
Created attachment 182746 [details]
Configure Vault entry is not grouped

See attached image.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2025-08-01 17:55:49 UTC
I see it, but how did you make it happen? I don't see this myself. Can you write steps to reproduce that make it happen 100% of the time when you run through them?
Comment 2 medin 2025-08-07 14:53:07 UTC
(In reply to Nate Graham from comment #1)
> I see it, but how did you make it happen? I don't see this myself. Can you
> write steps to reproduce that make it happen 100% of the time when you run
> through them?

The trick is you should show that highling border before unlocking your vault.

1. Logout then login
2. Click on Vaults widget and click on "Expand" arrow, you will see that border covers the two available items
3. Click on "Unlock Vault" button, type your password
4. Click on Vaults widget then that "Expand" arrow, you will see that last item is outside the border

Another case:
1. Logout then login
2. Click on Vaults widget and click on "Unlock and Open" buton without expanding anything, type your password
3. Click on Vaults widget then that "Expand" arrow, you will see that all 3 items are inside the highlighing border
4. Click on "Lock Vault", then click on "Expand" button, you will see that boder includes an empty line at the end (see image2)
Comment 3 medin 2025-08-07 14:53:38 UTC
Created attachment 183857 [details]
image2
Comment 4 Nate Graham 2025-08-08 15:42:09 UTC
Thanks, can confirm.
Comment 5 Nate Graham 2025-08-08 16:11:02 UTC
This appears to be a general issue in ExpandableListItem. It isn't re-evaluating the height binding of the expanded area when any contextual actions are enabled or disabled. Specifically, the `childrenRect.height` property isn't updating when that value should change because the child ListView gained an item.

This code hasn't changed in ages, so there may be a Qt regression involved, or perhaps a Qt change triggered the bug due to our own code being faulty here.
Comment 6 Nate Graham 2026-07-25 23:01:38 UTC
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.
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
Comment 7 Nate Graham 2026-07-25 23:07:02 UTC
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.
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 <bharadwaj.raju@machinesoul.in>

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

https://invent.kde.org/plasma/libplasma/-/commit/671f06489f5383b59da04c190249bb920f2d2a37
Comment 8 Nate Graham 2026-09-16 18:32:36 UTC
*** Bug 525562 has been marked as a duplicate of this bug. ***