elementary / files

File browser designed for elementary OS
https://elementary.io
GNU General Public License v3.0
324 stars 76 forks source link

List view columns can extend outside of viewport without scrolling #1992

Open mcclurgm opened 2 years ago

mcclurgm commented 2 years ago

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

grigoriosmaz commented 2 years ago

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.

jeremypw commented 2 years ago

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 commented 2 years ago

@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)?