Bug 465352

Summary: Widgets doesn't align with the dock
Product: [Plasma] plasmashell Reporter: Vladislav <nullzert.null>
Component: ContainmentAssignee: Vladislav <nullzert.null>
Status: CLOSED INTENTIONAL    
Severity: normal CC: nate, notmart
Priority: NOR    
Version First Reported In: 5.26.90   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: widget behaves wierdly when moved close to dock
widget alligned with the dock

Description Vladislav 2023-02-06 00:27:37 UTC
Created attachment 155988 [details]
widget behaves wierdly when moved close to dock

SUMMARY
Widgets can't be adjacent to dock as it could in older versions.
Also it decreases height when moved close to dock.
It behaves as intended on some dock heights. I have it set to 44 to get this bug.
May be was fixed with https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2535 but I can't test it.

STEPS TO REPRODUCE
1. Place widget on desktop
2. Change dock height to 44 or something
3. Try to put widget as low as you could

OBSERVED RESULT
Widget have some padding above the dock

EXPECTED RESULT
Lower bound of the widget perfectly aligns with dock 

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.9-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82EY
System Version: IdeaPad Gaming 3 15ARH05
Comment 1 Nate Graham 2023-02-07 18:01:22 UTC
Some of these issues are indeed resolved by https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2535, but it's intentional that there's a bit of space between the Panel and desktop widgets.
Comment 2 Vladislav 2023-02-08 20:33:21 UTC
Created attachment 156086 [details]
widget alligned with the dock

You actually can align it with panel on different heights, so since it inconsistent it doesn't seem to be intended.
Comment 3 Nate Graham 2023-02-08 20:39:24 UTC
It *is* intended. If we align perfectly, then we have to offset the grid based on the panel height. Doing that was one cause of widgets moving around after boot.