Bug 443641

Summary: With a short (≤ 38px) panel, Icons-Only Task Manager icons leave an empty space that widens as more icons are added
Product: [Plasma] plasmashell Reporter: David <david.cortes.rivera>
Component: Task Manager and Icons-Only Task ManagerAssignee: Eike Hein <hein>
Status: RESOLVED FIXED    
Severity: minor CC: nate, plasma-bugs
Priority: NOR    
Version: 5.21.5   
Target Milestone: 1.0   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In: 6.0
Attachments: kde_widening_space

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.
Comment 4 Nate Graham 2024-06-07 16:03:51 UTC
This appears to be fixed in Plasma 6.