Bug 438371 - Traditional Task manager width excessively large when surrounded by flexible spacers, even in non-space-filling mode
Summary: Traditional Task manager width excessively large when surrounded by flexible ...
Status: RESOLVED DUPLICATE of bug 424055
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.22.0
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 23:01 UTC by Natalie Clarius
Modified: 2023-07-31 21:57 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented 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. (127.71 KB, image/jpeg)
2021-06-09 23:01 UTC, Natalie Clarius
Details
The icons are shifted towards the left instead of right in the center of the panel, with redundant space on the right. (108.47 KB, image/jpeg)
2021-06-09 23:07 UTC, Natalie Clarius
Details
Panel edit mode reveals excess width in the task manager widget. (127.92 KB, image/jpeg)
2021-06-09 23:11 UTC, Natalie Clarius
Details

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