Bug 460564 - Table columns expand as window becomes wider, so the table always remains horizontally scrollable at any window width unless you manually resize the columns
Summary: Table columns expand as window becomes wider, so the table always remains hor...
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.26.0
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
: 454754 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-10-17 03:02 UTC by Victor Prudniy
Modified: 2023-01-25 11:00 UTC (History)
4 users (show)

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


Attachments
demo (965.23 KB, image/png)
2022-10-17 03:02 UTC, Victor Prudniy
Details
hidden part (236.78 KB, image/png)
2022-10-18 10:30 UTC, Victor Prudniy
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***