Bug 486527

Summary: When floating panel defloats, widgets present on it dont fully align left/right
Product: [Plasma] plasmashell Reporter: leon.halic
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: 6.0.4   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description leon.halic 2024-05-03 19:36:27 UTC
When using a floating panel, and you have widgets on it pushed fully to the side (like application launcher is by default), and the panel defloats as you fullscreen and application, the widgets do not align fully to the side.

To explain a bit more. There is a difference in the amount of padding on the edges of the panel between a non-floatin panel and a defloated panel. Where defloated panel has much more padding, creating a weird look.

It seems that when a panel deflotes, the widgets keep their absolute position on the panel, rather than their relative position (relative to the edge of the panel).


STEPS TO REPRODUCE
1.  Enable  floating panel and put a widget (like application launcher) to the most left part of the panel
2.  Use a window to defloat the panel

OBSERVED RESULT
Widget on the panel remains in the exact same absolute position, creating a fat padding on the side of the defloated panel.

EXPECTED RESULT
Widget on the panel should remain in the same relative position on the panel, so the padding on the side of the panel is always the same.

SOFTWARE/OS VERSIONS

Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.7-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-05-03 20:15:51 UTC
This is intentional at the moment: the reason for it is so widgets' click targets don't shift around horizontally and break your muscle memory.