Bug 486049

Summary: floating panel having the wrong size under wayland
Product: [Plasma] plasmashell Reporter: LuneLovehearn <lunelovehearn>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fanzhuyifan, niccolo.venerandi, niccolo
Priority: NOR    
Version: 6.0.4   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=477317
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: the bug itself

Description LuneLovehearn 2024-04-24 02:19:31 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
under wayland, I use a floating panel with only the task manager (icons only) as a latte dock replacement. I have it set to be centered and auto adjust. when I login to plasma, it has the wrong size and sets my icons to the left. this didn't happened before. 

STEPS TO REPRODUCE
1. make a floating panel that will contain the pinned and opened apps, center it to create a dock.
2. login with wayland session
3. the bug happens

OBSERVED RESULT

the only fix is to open edit mode then escape. but the bug will show up next login or boot.
EXPECTED RESULT
have no issue but a dock/panel with the correct size and padding.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Arch Linux
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
attached a shot of the issue under wayland
Comment 1 LuneLovehearn 2024-04-24 02:20:07 UTC
Created attachment 168853 [details]
the bug itself
Comment 2 Niccolò Venerandi 2024-04-26 09:29:23 UTC
When you enter edit mode, do you see it still as "fit content" or does it fall back to "fill width"?
Comment 3 LuneLovehearn 2024-04-27 02:51:55 UTC
(In reply to Niccolò Venerandi from comment #2)
> When you enter edit mode, do you see it still as "fit content" or does it
> fall back to "fill width"?

by default it was using "fit content" after upgrading from plasma 5.27.x 
I ended setting it to custom and the bug shows up at random, but less times now. will reboot to see if it persists and reply back
Comment 4 LuneLovehearn 2024-04-27 02:57:14 UTC
(In reply to KazuhiroShigeru from comment #3)
> (In reply to Niccolò Venerandi from comment #2)
> > When you enter edit mode, do you see it still as "fit content" or does it
> > fall back to "fill width"?
> 
> by default it was using "fit content" after upgrading from plasma 5.27.x 
> I ended setting it to custom and the bug shows up at random, but less times
> now. will reboot to see if it persists and reply back

well, it seems like that after updating arch the bug was fixed, as I set the panel to "fit content" again and it's not happening even after a reboot under the wayland session.
Comment 5 Niccolò Venerandi 2024-04-28 09:21:10 UTC
I'll mark as resolved then.