Bug 426077 - Vertical scroll bar is enabled in Widget Explorer even when there is nothing to scroll
Summary: Vertical scroll bar is enabled in Widget Explorer even when there is nothing ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Widget Explorer (show other bugs)
Version: master
Platform: Neon Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-01 17:55 UTC by Patrick Silva
Modified: 2021-10-12 19:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.24


Attachments
screenshot (1.21 MB, image/png)
2020-09-01 17:55 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-09-01 17:55:45 UTC
Created attachment 131349 [details]
screenshot

STEPS TO REPRODUCE
1. right-click on wallpaper, choose "Add widgets"
2. type random characters in the search field
3. 

OBSERVED RESULT
as we can see in the attached screenshot, vertical scroll bar is enabled despite there is nothing to be scrolled

EXPECTED RESULT
no scroll bar when there is nothing to scroll

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Comment 1 David Edmundson 2020-09-02 08:58:43 UTC
This was deliberate at the time.

Changing the scrollbar changed the width which changed how text wrapped which could change how many items got shown which changed whether you need a scrollbar which changed the width....

I don't want to see that bug back.
Comment 2 Nate Graham 2020-09-08 16:12:32 UTC
If we need the width of the scrollview to not change, maybe we could just add empty space on the right side where the scrollbar would be. That would still be ugly, but probably better than showing a full scrollbar when the view isn't scrollable.
Comment 3 Nate Graham 2021-03-04 19:14:34 UTC
In testing this out, I no longer see the bug that David describes.
Comment 4 Bug Janitor Service 2021-03-04 19:17:48 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/369
Comment 5 Méven Car 2021-10-12 19:47:24 UTC
Git commit cba7b1f70dc38af3f7c8d5aa5974d6714bad62b3 by Méven Car.
Committed on 12/10/2021 at 15:04.
Pushed by ngraham into branch 'master'.

Port WidgetExplorer' PlasmaExtras.ScrollArea to PC3.ScrollView
Related: bug 437155

M  +14   -10   desktoppackage/contents/explorer/WidgetExplorer.qml
M  +1    -1    desktoppackage/contents/views/Desktop.qml

https://invent.kde.org/plasma/plasma-desktop/commit/cba7b1f70dc38af3f7c8d5aa5974d6714bad62b3