Bug 438371

Summary: Traditional Task manager width excessively large when surrounded by flexible spacers, even in non-space-filling mode
Product: [Plasma] plasmashell Reporter: Natalie Clarius <natalie_clarius>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Eike Hein <hein>
Status: RESOLVED DUPLICATE    
Severity: minor CC: kde.podagric, natalie_clarius, nate, plasma-bugs
Priority: NOR    
Version First Reported In: 5.22.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right.
The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right.
Panel edit mode reveals excess width in the task manager widget.

Description Natalie Clarius 2021-06-09 23:01:05 UTC
Created attachment 139173 [details]
The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right.

SUMMARY

STEPS TO REPRODUCE
1. Place task manager widget in the center of a panel (by adding flexible space on each of the sides).
2. Have few or no windows open.

OBSERVED RESULT
The task items appear off-center, because the widget width computed is too wide with redundant whitespace on the right, pushing the existing items towards the left.

EXPECTED RESULT
The items are exactly in the center because the widget has the same width as the combined widths of the existing items.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.9-arch1-1 (64-bit)

ADDITIONAL INFORMATION
This is only an aesthetic issue, but it bugs me.
The issue resolves itself once a larger number of windows is open and no redundant space in the widget is produced.
Using Latte Dock is not a solution because it does not have a feature to show window titles, only icons.
Comment 1 Natalie Clarius 2021-06-09 23:07:50 UTC
Created attachment 139175 [details]
The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right.
Comment 2 Natalie Clarius 2021-06-09 23:11:58 UTC
Created attachment 139176 [details]
Panel edit mode reveals excess width in the task manager widget.
Comment 4 Nate Graham 2022-12-05 20:45:55 UTC
That was merged. Natalie, are you able to use the setting added there to make the Task Manager work how you expect?
Comment 5 Natalie Clarius 2022-12-06 01:46:17 UTC
No, this setting does not resolve it. I think the problem is `launcherLayoutTasks` in the layout code, which always adds one or more spaces the size of a regular task even when (as in my example) part of it are only launchers. I made several attempts at fixing it without breaking it somewhere else but didn't manage.
Comment 6 Natalie Clarius 2023-07-31 21:57:38 UTC

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