Bug 479469

Summary: unnecessary scrollbar on "Power and Battery" applet
Product: [Plasma] plasmashell Reporter: Alper Çelik <alper>
Component: Battery MonitorAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: agurenko, bugseforuns, kde, me, natalie_clarius, nate
Priority: NOR Keywords: qt6
Version: 5.91.0   
Target Milestone: 1.0   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: scrollbar

Description Alper Çelik 2024-01-06 15:46:30 UTC
Created attachment 164708 [details]
scrollbar

SUMMARY
there is an unnecessary scrollbar on "Power and Battery" applet that dissapears when applet is enlarged .
see the attachment for how it looks.

also note it looks like scrollbar dissapears when the text "your laptop configured to not sleep when closing the lid while an external monitor is connected" stops overflowing to the next line


STEPS TO REPRODUCE
1. open Power and Battery applet
2. see the scrollbar on the bottom


OBSERVED RESULT
there is a scrollbar in default size of the applet

EXPECTED RESULT
there shouldn't be a scrollbar

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Nixos unstable, kde2nix / kde plasma 6.0 beta 2
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2024-01-07 15:25:04 UTC
Same with Clipboard applet and popup that shows the hidden system tray icons on neon unstable.
Comment 2 Nate Graham 2024-01-11 20:55:02 UTC
Cannot reproduce any of those with Qt 6.6.0. In Plasma 5 times, we disabled the horizontal scrollbars to work around a Qt issue that was causing them to inappropriately appear. Maybe it's back in some form...
Comment 3 Alper Çelik 2024-01-27 12:45:01 UTC
(In reply to Nate Graham from comment #2)
> Cannot reproduce any of those with Qt 6.6.0. In Plasma 5 times, we disabled
> the horizontal scrollbars to work around a Qt issue that was causing them to
> inappropriately appear. Maybe it's back in some form...

looks like it only comes with "your laptop configured to not sleep when closing the lid while an external monitor is connected" message not from "x is currently blocking sleep and screen locking" message
Comment 4 Nate Graham 2024-01-29 17:11:36 UTC
I still don't see it even with that message shown because I have an external screen connected. Maybe this regressed in Qt 6.6.1?
Comment 5 Alper Çelik 2024-02-29 19:46:10 UTC
seems to be fixed on plasma 6 and qt 6.6.2
Comment 6 Patrick Silva 2024-03-04 21:23:12 UTC
This bug persists on my system, but I can't reproduce consistently.
Clipboard and plasma-nm applets are also affected.

Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland