files icon indicating copy to clipboard operation
files copied to clipboard

List view columns can extend outside of viewport without scrolling

Open mcclurgm opened this issue 4 years ago • 3 comments

What Happened?

Horizontal scrolling is disabled in the list view mode. I have checked the inspector, and it appears that the hscrollbar_policy is set to NEVER.

It is possible to make the contents of the list wider than the window, however. This is quite simple to do by resizing the columns, so that the name column is as wide as the window. Any more columns are invisible off the right margin of the window.

Steps to Reproduce

  1. Open Files and change the view mode to list view
  2. Resize any column so that it extends to the right (or trailing) margin of the window
  3. Notice how all other columns are extending past the viewport, but it is impossible to scroll to see them

Expected Behavior

Either we should disallow extending the columns wider than the window, or we should allow horizontal scrolling.

As an example. the Mac OS Finder allows horizontal scrolling when the contents are wider than the window.

OS Version

6.x (Odin)

Software Version

Compiled from git

Log Output

No response

Hardware Info

No response

mcclurgm avatar Jan 22 '22 23:01 mcclurgm

Was able to recreate this, what seems to be the case is that columns may be "pushed" outside the horizontally scrollable area because it has a fixed width and doesnt expand as columns occupy more horizontal space.

grigoriosmaz avatar Jul 21 '22 00:07 grigoriosmaz

Note that if the column list is made wider than the window by (1) adding more columns or (2) resizing the window, then the view does become horizontally scrollable. For some reason this does not happen when an individual column is manually resized though. Work around is to downsize the column again to view columns to the right, or resize the window.

jeremypw avatar Jul 25 '22 15:07 jeremypw

@mcclurgm The ColumnView has its own scrolled window and for that the horizontal scrolling policy is "AUTOMATIC". I think maybe you were confusing with the scrolling of the individual slots (which is only vertical)?

jeremypw avatar Jul 25 '22 15:07 jeremypw