Bug 475833

Summary: System Tray and Clock overlap with 40px thick or thicker horizontal panel until panel is moved to another screen edge and back
Product: [Plasma] plasmashell Reporter: Nate Graham <nate>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: dev.bacteriostat, jspahi00, niccolo.venerandi
Priority: NOR Keywords: qt6, regression
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:
Attachments: That's very interesting, Linda

Description Nate Graham 2023-10-19 16:43:54 UTC
Created attachment 162424 [details]
That's very interesting, Linda

Today's git master Plasma 6, Wayland, 200% scale

With today's git master of everything, when I use a horizontal panel, the System Tray and Digital Clock widgets overlap 100% of the time. See attached screenshot.

It reproduces if I restart plasmashell.

I can make it temporarily go away by moving the panel to the left or right screen edge to make it vertical, and then back to the top or bottom screen edge to make it horizontal again. Thereafter, if plasmashell is restarted, the problem returns.

The problem is not seen with a vertical panel.
Comment 1 Nate Graham 2023-11-14 15:44:40 UTC
Can reproduce this at will when using a horizontal panel that's 40px thick or thicker. Does not reproduce with a panel of 38px thick or thinner.
Comment 2 Bug Janitor Service 2023-11-15 07:42:32 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3538
Comment 3 Nate Graham 2023-11-16 16:10:16 UTC
Git commit 467d3215cc20985b6141e57c5d31961dd462ef7d by Nate Graham, on behalf of Bacteria Dev.
Committed on 16/11/2023 at 17:10.
Pushed by ngraham into branch 'master'.

applets/digital-clock: Don't overlap adjacent widgets in horizontalPanel state

The issue occurred because `sizehelper.contentWidth` does not provide the
right width of the time component. 

So let's use `timeLabel.paintedWidth` that provides the right width of the
time component. 

M  +1    -1    applets/digital-clock/package/contents/ui/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/467d3215cc20985b6141e57c5d31961dd462ef7d
Comment 4 Nate Graham 2024-02-21 16:55:04 UTC
*** Bug 481432 has been marked as a duplicate of this bug. ***