Bug 443641 - With a short (≤ 38px) panel, Icons-Only Task Manager icons leave an empty space that widens as more icons are added
Summary: With a short (≤ 38px) panel, Icons-Only Task Manager icons leave an empty spa...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.21.5
Platform: Debian unstable Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-12 16:12 UTC by David
Modified: 2021-10-13 17:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kde_widening_space (911.69 KB, image/gif)
2021-10-12 16:12 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-10-12 16:12:43 UTC
Created attachment 142373 [details]
kde_widening_space

SUMMARY
When using the icons-only task manager with 1 row of icons, if I start launching applications and thereby add new icons to the taskbar, once it reaches the end of the available space, it will leave an empty space inbetween the icons and the next widget to the right, and this blank space will keep widening as I add more and more icons (see attached video).

STEPS TO REPRODUCE
1. Set icons-only task manager in a KDE panel, and configure it to have only 1 row of icons.
2. Start launching many applications past the point where all available space for the task manager is filled under the default icon size.
3. Watch the space inbetween the task manager and the next widget that borders it (typically the system tray).

OBSERVED RESULT
As more icons are added, an empty space is put next to the icons, and this empty space keeps getting larger and larger as more icons are added, therefore shrinking them more than is necessary.

EXPECTED RESULT
Should shrink icons only as much as is required in order to arrange them in the available space.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-10-13 15:40:52 UTC
Weird, cannot reproduce with a horizontal or vertical panel and an Icons-Only Task Manager.

I notice you're using Plasma 5.21. Any chance you could test again in 5.23 once it's released tomorrow?
Comment 2 David 2021-10-13 17:42:10 UTC
(In reply to Nate Graham from comment #1)
> Weird, cannot reproduce with a horizontal or vertical panel and an
> Icons-Only Task Manager.
> 
> I notice you're using Plasma 5.21. Any chance you could test again in 5.23
> once it's released tomorrow?

Would anything change if you make  the panel shorter? This was with a height of 38 pixels.
Comment 3 Nate Graham 2021-10-13 17:54:35 UTC
Aha, I can reproduce the issue with a 38px tall panel! I was using 52. I guess the scaling.shrinking code is affected by the size.