Created attachment 169673 [details] Extra space at the end of icons only task manager SUMMARY When using icons only task manager in a floating fit-content panel with no other items in it, it shows extra space at startup. The extra space goes away the moment user opens a task that is NOT pinned at the task manager, or opens up panel settings. If panel is not floating, the icons only task manager icons are very small. Also likely related, but if screen is turned off and back on again after some time, all the icons disappear and the panel gets absurdly small. STEPS TO REPRODUCE 1. Set a panel at bottom of screen with icons only task manager, no other applets 2. Set panel width to "Fit content" 3. Set panel to floating 4. Restart plasmashell OBSERVED RESULT As long as there is no tasks open, or if the tasks open are only pinned tasks, there will be extra space. EXPECTED RESULT The panel would resize correctly. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 40 KDE Plasma Version: 6.0.80 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.0 Kernel Version: 6.8.9-300.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 3600 6-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX 6600 ADDITIONAL INFORMATION In /kde/src/plasma-desktop/applets/taskmanager/package/contents/ui/main.qml around line 435, if i set the Layout.maximumWidth manually to 96*15 (panel thickness * how many tasks i have pinned), and Layout.maximumHeight to 96 (panel thickness), things seem to work fine for me when loading. It seems like some sizes are miscalculated or just not found proper.
The bug seems to be in `kde/src/plasma-workspace/shell/panelview.cpp` In `PanelView::resizeEvent`, removing the following fixes the issue. ```cpp //const QPoint pos = geometryByDistance(0).topLeft(); //setPosition(pos); ``` However this causes the window preview hover popup to be in wrong place.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4338
*** Bug 487361 has been marked as a duplicate of this bug. ***
Fixed with https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4344