Bug 482562 - With existing vertical panel, new bottom panel set to custom width isn't correctly centered and attached to its screen edge until plasmashell is restarted
Summary: With existing vertical panel, new bottom panel set to custom width isn't corr...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 18:29 UTC by righn
Modified: 2024-08-28 19:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description righn 2024-03-06 18:29:03 UTC
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
***


STEPS TO REPRODUCE
1. Create an empty panel and put it in the bottom
2. Change alignment to center and change it's width
3. Put it on auto hide

OBSERVED RESULT

I wanted to create a Dock style panel on the bottom as I did in Plasma 5, had no issues. But when I try to center it, it just sticks to the left side and won't budge, even if I changes its width to custom. Also, changing it to auto hide mode, creates an empty space under a window, but the panel itself hides.

EXPECTED RESULT

Panel sticks to the center and doesn't create an empty space under a window

SOFTWARE/OS VERSIONS
Linux: EndeavourOS 
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-03-07 03:46:11 UTC
Is this on X11 or Wayland?

If you try in a new user account, does it work?
Comment 2 righn 2024-03-07 04:45:55 UTC
(In reply to Nate Graham from comment #1)
> Is this on X11 or Wayland?
> 
> If you try in a new user account, does it work?

I'm on Wayland. I tried X11, the issue wasn't there. Then I created another user account and when to try there both X11 and Wayland. Worked fine and then after going back to my main account, the issue disappeared too on Wayland. So that's good and interesting.
Comment 3 Nate Graham 2024-03-08 21:58:45 UTC
I think I can reproduce the issue, but the steps are fairly involved. Here are the steps that work for me with a single screen at 225% scale:

1. Start with a default bottom panel
2. Right-click on it > Show Panel Configuration
3. Move it over to the left screen edge
4. Exit Edit Mode by clicking on the close button on the global Edit Mode toolbar
5. Restart plasmashell with `systemctl restart --user plasma-plasmashell.service` for good measure
6. Right-click on desktop > Enter Edit Mode
7. Global Edit Mode toolbar > Add Panel > Empty Panel
8. Right-click on new empty full-width bottom panel > Show Panel Configuration
9. Change width mode to Custom
10. Drag on right edge of ruler to set a custom width

At this point, the panel resizes, but it's attached to the left side of the screen, not centered as expected.

11. Now exit edit mode by clicking on the close button on the global Edit Mode toolbar

At this point, the bottom panel is not touching the bottom of  the screen.

12. Now restart plasmashell with `systemctl restart --user plasma-plasmashell.service`

At this point, the panel is centered and touching the bottom of the screen as expected.
Comment 4 righn 2024-03-20 14:04:09 UTC
Well, I had to reinstall EndeavourOS to unrelated issues. And this bug reappeared again, so I guess it still exists and wasn't only on my side, but using `systemctl restart --user plasma-plasmashell.service`, as Nathan mentioned, resolved it right away. But I guess, it could be problematic for new KDE users.
Comment 5 Nate Graham 2024-08-28 19:36:06 UTC
With current git master, I can no longer reproduce the issue at all; it would appear it's been fixed by one of the many code refactors done for panels during this development cycle.