Bug 460564

Summary: Table columns expand as window becomes wider, so the table always remains horizontally scrollable at any window width unless you manually resize the columns
Product: [Applications] plasma-systemmonitor Reporter: Victor Prudniy <vityas_official>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: ahiemstra, andysem, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.26.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: demo
hidden part

Description Victor Prudniy 2022-10-17 03:02:17 UTC
Created attachment 152920 [details]
demo

SUMMARY
Scroll on x-axis always presented in "Processes" tab despite window width.
Please see attachment.

EXPECTED RESULT
When there are enough space x-scroll removing should be higher priority than increasing columns width.
Comment 1 Nate Graham 2022-10-17 20:40:41 UTC
If you grab it and drag, does it reveal that there's another hidden column on the right?
Comment 2 Victor Prudniy 2022-10-18 10:30:27 UTC
Created attachment 152984 [details]
hidden part

Only part of last column + area on top of scrollbar is hidden.
Comment 3 Nate Graham 2022-10-18 16:44:00 UTC
So then this is working as expected: there's a horizontal scrollbar because the view content (including table headers) doesn't entirely fit into the available space. :)
Comment 4 Victor Prudniy 2022-10-18 16:56:52 UTC
(In reply to Nate Graham from comment #3)
> So then this is working as expected: there's a horizontal scrollbar because
> the view content (including table headers) doesn't entirely fit into the
> available space. :)

It's like ~3500px window width on my first screenshot, surely enough space for all content =)
My point is that removing scrollbar should be higher priority than increasing width of each column, because user likely wants no scroll and all columns visible instead of super-wide columns and blank space between content.
Comment 5 Victor Prudniy 2022-10-18 17:06:35 UTC
Never mind, I just found that I can resize columns by hand xD
Comment 6 Nate Graham 2022-10-18 18:11:11 UTC
Oh I see what you mean; when you make the window bigger, the columns expand too so the view remains scrollable no matter how wide yo make the window, unless you manually make the columns narrower. That's a legitimate complaint.
Comment 7 Arjen Hiemstra 2023-01-11 11:08:10 UTC
This is intentional. A choice needs to be made regarding how to deal with the space that is added or removed when resizing the window. Rather than just adding empty space or awkwardly resizing only one column, we try and keep things balanced. This is actually more important when reducing the window size, as in that case we try to keep everything in view as much as possible rather than hiding stuff that could be shown.
Comment 8 Nate Graham 2023-01-11 15:09:41 UTC
But can we make the default column widths not make the page scrollable by default at least, then?
Comment 9 Arjen Hiemstra 2023-01-25 11:00:33 UTC
*** Bug 454754 has been marked as a duplicate of this bug. ***