Bug 465839 - Widgets resize when moved too close to panel
Summary: Widgets resize when moved too close to panel
Status: RESOLVED DUPLICATE of bug 358418
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop Containment (show other bugs)
Version: 5.27.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-16 13:57 UTC by Vladislav
Modified: 2023-04-10 00:07 UTC (History)
3 users (show)

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


Attachments
widget rezises when moved too close to panel (416.96 KB, video/mp4)
2023-02-16 13:57 UTC, Vladislav
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***