Bug 465839

Summary: Widgets resize when moved too close to panel
Product: [Plasma] plasmashell Reporter: Vladislav <nullzert.null>
Component: Desktop ContainmentAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: minor CC: justin.zobel, nate, notmart
Priority: NOR    
Version: 5.27.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: widget rezises when moved too close to panel

Description Vladislav 2023-02-16 13:57:45 UTC
Created attachment 156300 [details]
widget rezises when moved too close to panel

STEPS TO REPRODUCE
1. Set panel height at which this bug reproduces
2. Try to move widget under the panel

OBSERVED RESULT
Widget changes size

EXPECTED RESULT
Widget size stays the same

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-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 Justin Zobel 2023-02-17 07:45:22 UTC
I'm trying to reproduce this but I cannot. You've mentioned this bug only occurs when the panel is set at a certain height but this detail is missing from the report. Can you please provide it so we can try and reproduce the issue?
Comment 2 Vladislav 2023-02-17 13:40:53 UTC
(In reply to Justin Zobel from comment #1)
> I'm trying to reproduce this but I cannot. You've mentioned this bug only
> occurs when the panel is set at a certain height but this detail is missing
> from the report. Can you please provide it so we can try and reproduce the
> issue?

I have bottom panel with height set to 44. But it reproduces at nearly half of different heights for me.
Comment 3 Nate Graham 2023-04-10 00:07:54 UTC
This happens because widgets are internally snapped to a grid. That grid is less granular than the configurability allowed by the panel. The result of this is that for certain panel thicknesses, it's possible for widgets to be almost touching the panel, and for other panel thicknesses, it isn't.

Our options are:
1. Allow widgets to not be snapped to a grid (Bug 358418)
2. Reduce panel thickness granularity to match the desktop widget grid size

I don't think people would appreciate #2 at all, so out only option to improve this is to do #1, which means implementing that's requested in Bug 358418. Marking as a duplicate of that one.

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