Bug 407137 - Sometimes a list of grouped windows has an unnecessary scroll bar
Summary: Sometimes a list of grouped windows has an unnecessary scroll bar
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.15.4
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-01 21:55 UTC by Patrick Silva
Modified: 2023-01-25 21:47 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27


Attachments
screenshot (36.82 KB, image/png)
2019-05-01 21:55 UTC, Patrick Silva
Details
video (895.48 KB, video/webm)
2019-05-26 12:15 UTC, equeim
Details
bug on Plasma 5.27 beta (65.90 KB, image/png)
2023-01-21 15:35 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-05-01 21:55:33 UTC
Created attachment 119784 [details]
screenshot

SUMMARY
Sometimes a list of grouped windows has an unnecessary scroll bar.
I can't reproduce this behavior consistently, but it occurs 90% of the times after I follow the steps below.

STEPS TO REPRODUCE
1. open one window of chromium browser (I can't reproduce with Firefox)
2. press ctrl+n to open another chromium window (now you have two chromium windows)
3. open konsole
4. press ctrl+shift+n three times to open new instances of konsole (now you have 4 konsole windows) 
5. open another app (Kate, for example) via the apps launcher
6. click the group of chromium windows
7. click the group of chromium windows again to close it
8. click the group of konsole windows

OBSERVED RESULT
list of grouped konsoles has an uneccessary scroll bar.
See the screenshot.

EXPECTED RESULT
no scroll bar

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.13.0 beta3
Comment 1 Nate Graham 2019-05-02 23:05:11 UTC
Does it happen with Qt 5.12.x?
Comment 2 Patrick Silva 2019-05-02 23:26:14 UTC
Reproducible with Qt 5.12 on neon dev unstable.
Comment 3 equeim 2019-05-16 16:08:40 UTC
I have the same issue, on Neon (user, with last updates) and Fedora 30 (29 with Qt 5.11 also had it).
Comment 4 equeim 2019-05-26 12:15:35 UTC
Created attachment 120319 [details]
video

I've recorded a video with this (and 407136) issue.
Comment 5 Nate Graham 2021-04-07 09:31:19 UTC
I am not able to reproduce this with current git master. Can you check again? Thanks!
Comment 6 Patrick Silva 2021-04-09 15:25:10 UTC
cannot reproduce on neon unstable or Arch Linux. :)

Operating System: Arch Linux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Graphics Platform: X11
Comment 7 Nate Graham 2021-04-09 16:48:34 UTC
Yay!
Comment 8 Patrick Silva 2023-01-21 15:35:10 UTC
Created attachment 155472 [details]
bug on Plasma 5.27 beta

Can reproduce again.

1. set the task manager to close tasks or grouped tasks with middle-click
2.  launch several instances of Konsole, until they are grouped in the task manager
3. click on the grouped Konsoles
4. close some instances of Konsole with middle-click on them

Result: as we can see in the screenshot attached to this comment, the list of grouped Konsoles has a unnecessary scroll bar

Operating System: Arch Linux 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Graphics Platform: Wayland
Comment 9 Fushan Wen 2023-01-24 02:14:02 UTC
Git commit 385a96458259280bc138159148a27c0fae6d911b by Fushan Wen.
Committed on 24/01/2023 at 02:13.
Pushed by fusionfuture into branch 'master'.

applets/taskmanager: use `real` data type for all size properties in GroupDialog

width and height in QML are always of real type. Don't use int data type
to avoid losing precision.
FIXED-IN: 5.27

M  +6    -6    applets/taskmanager/package/contents/ui/GroupDialog.qml

https://invent.kde.org/plasma/plasma-desktop/commit/385a96458259280bc138159148a27c0fae6d911b
Comment 10 Fushan Wen 2023-01-24 02:14:59 UTC
Git commit 34f24d17cd65a254e47261eff32ffc83fd19535f by Fushan Wen.
Committed on 24/01/2023 at 02:14.
Pushed by fusionfuture into branch 'Plasma/5.27'.

applets/taskmanager: use `real` data type for all size properties in GroupDialog

width and height in QML are always of real type. Don't use int data type
to avoid losing precision.
FIXED-IN: 5.27
(cherry picked from commit 385a96458259280bc138159148a27c0fae6d911b)

M  +6    -6    applets/taskmanager/package/contents/ui/GroupDialog.qml

https://invent.kde.org/plasma/plasma-desktop/commit/34f24d17cd65a254e47261eff32ffc83fd19535f