Bug 468275

Summary: Wrapping a widget in 2 spacers centers it relative to the free space, not the whole panel
Product: [Plasma] plasmashell Reporter: Ilya Bizyaev <bizyaev>
Component: Panel SpacerAssignee: Niccolò Venerandi <niccolo>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 5.27.3   
Target Milestone: 1.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshots (before - after)

Description Ilya Bizyaev 2023-04-08 09:11:03 UTC
Created attachment 157949 [details]
Screenshots (before - after)

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
The attached screenshot demonstrates the issue with a "Show Desktop" widget, but the difference gets more noticeable with bigger widgets like the system tray.

STEPS TO REPRODUCE
1. Create a vertical panel with a launcher menu, a digital clock, and a fixed-size icon-only task manager wrapped in 2 flexible spacers.
2. Try adding more widgets to the bottom end of the panel.

OBSERVED RESULT
The task manager moves higher with every new widget.

EXPECTED RESULT
The task manager remains in place, centered relative to the whole panel.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230404
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.9-1-default (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-04-10 02:40:47 UTC

*** This bug has been marked as a duplicate of bug 467416 ***