Bug 422147 - Weird Desktop with horizontal scrollbar
Summary: Weird Desktop with horizontal scrollbar
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: 5.18.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-27 20:07 UTC by medin
Modified: 2023-04-10 15:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27
Sentry Crash Report:


Attachments
Weird Desktop with horizontal scrollbar (393.75 KB, video/mp4)
2020-05-27 20:07 UTC, medin
Details
5.27.3 Scrollbar desktop (3.11 MB, video/mp4)
2023-04-10 02:19 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2020-05-27 20:07:35 UTC
Created attachment 128846 [details]
Weird Desktop with horizontal scrollbar

When I put some files on the far right of the desktop, then change the text label of files from smaller to bigger, the desktop become wider with some weird horizontal scroll-bar appears. See my video for more info.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 5.6.12-1-MANJARO
OS Type: 64-bit
Processors: 2 × Pentium® Dual-Core CPU T4400 @ 2.20GHz
Memory: 5.7 GiB of RAM
Comment 1 Nate Graham 2021-01-08 20:51:37 UTC
Interesting. Cannot reproduce, though I feel like I've seen other similar bug reports in the past.

Are you still seeing this in Plasma 5.20?
Comment 2 medin 2021-01-08 22:24:55 UTC
(In reply to Nate Graham from comment #1)
> Interesting. Cannot reproduce, though I feel like I've seen other similar
> bug reports in the past.
> 
> Are you still seeing this in Plasma 5.20?

The problem is still persistent on 5.20.4, when I put some files at far right side of my desktop then after changing Label width from Narrow to Wide it causes my desktop to be horizontally enlarged and an horizontal scroll bar appears at bottom.
Comment 3 medin 2021-01-09 11:31:34 UTC
I should add that my laptop screen size is 15.6"
Comment 4 medin 2022-02-11 18:47:55 UTC
I can now produce this behavior with :  If you fill every row and column in your desktop grid with files and folders, then copy and paste a new file into it you will see that horizontal scrollbar.
Comment 5 medin 2022-02-11 19:04:41 UTC
But I think pasting a new item into full desktop should have that behavior. Another scenario in which this behavior should not occur is :

1- If you put some files at far right corner of your desktop, 
2- then change scale e.g from 100% to 150% or 200% then logout,
3- login again and change back scale to 100% then logout

If you login now you will find that horizontal scrollbar.
Comment 6 Nate Graham 2023-04-09 20:38:41 UTC
Fixed in Plasma 5.27 by porting Folder View to a new better scroll view type that does not trigger this issue.
Comment 7 medin 2023-04-10 02:13:31 UTC
(In reply to Nate Graham from comment #6)
> Fixed in Plasma 5.27 by porting Folder View to a new better scroll view type
> that does not trigger this issue.


With 5.27.3 the bug is still present for me.
Comment 8 medin 2023-04-10 02:19:23 UTC
Created attachment 157984 [details]
5.27.3 Scrollbar desktop
Comment 9 Nate Graham 2023-04-10 15:24:42 UTC
Aha! I figured it out.

This only happens when using column/top-to-bottom organization. In this usage mode, the desktop grows horizontally and then becomes horizontally scrollable when there's not enough horizontal space. It's the same thing as how when using row/left-to-right organization the desktop grows vertically and becomes vertically scrollable when there isn't enough vertical space.

When you use this horizontally-growable view and fill up all horizontal space and then demand more horizontal space from the system by increasing the label width, it has no chance but to give you more horizontal space by becoming horizontally scrollable.

The fact that the desktop can become scrollable is a bit odd, but this is the current design choice for how to handle "not enough space in the direction the layout grows in" problems.