elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

AppCenter Arbitrarily Sets Minimum Window Size Larger Than 1080p 2x HiDPI Screen #328

Closed elsiehupp closed 2 years ago

elsiehupp commented 2 years ago

What Happened?

If you have Elementary OS connected to a 1080p monitor (i.e. a television), and you have interface scaling set to 2x, and you open the Elementary AppCenter application, the AppCenter window will be larger than the screen. While you can move the window and make it narrower, you cannot make the window as narrow as the screen, and you cannot maximize the window.

Steps to Reproduce

  1. Connect Elementary OS to a 1080p monitor (i.e. a television).
  2. Set the interface scaling to 2x.
  3. Open the Elementary AppCenter application.

The AppCenter window will be larger than the screen.

  1. Try moving and resizing the window to make it narrower. (This should generally work.)
  2. Try making the window as narrow as the screen.
  3. Try maximizing the window.

Expected Behavior

When the AppCenter application is opened on a 1080p display with 2x interface scaling, the window should launch either maximized or smaller than the screen resolution. If the window is not just always maximized at this resolution—which would be completely reasonable—it should be possible to maximize the window.

While 960 x 540 is indeed an extremely small effective screen resolution, the fact that 1080p displays (i.e. televisions) are still extremely common means that supporting it may be less of an edge case than one might initially think. Many applications seem to treat 1024 pixels as a reasonable narrowest size, and 960 pixels is only slightly narrower than this, so it shouldn't be too much of a stretch (no pun intended).

Ideally there would be a more straightforward way to use, say 1.75x scaling (which I have been able to do on the same system with Ubuntu), but not all users will necessarily have graphics drivers that support fractional scaling, so 540p should be supported as a fallback.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

NVIDIA GeForce GTX 860M with NVIDIA drivers installed from the AppCenter. I have yet to figure out fractional scaling on Elementary OS, though it should be possible using the NVIDIA X Server Settings, and I have been able to use fractional scaling with the same system on Ubuntu.

danirabbit commented 2 years ago

As you noted here, 1080p@2x is smaller than the smallest supported resolution of 1024x768. This display should be using @1x with a large font size instead.

Moving to display settings since we should probably not allow setting 2x scaling on such a smaller resolution

danirabbit commented 2 years ago

AppCenter is completely unrelated to GNOME Software. The minimum resolution we support is 1024x768. Apple doesn’t maintain elementary OS 😉

as I said before, if things appear too small for you at 1080p, the supported thing to do is to increase font size in Desktop → Appearance. But there’s no intention to support resolutions smaller than 1024x768 in elementary OS

cassidyjames commented 2 years ago

This appears to be a duplicate of https://github.com/elementary/appcenter/issues/1653, as it was a regression that forced the width to be wider than intended. It has been fixed in https://github.com/elementary/appcenter/pull/1708 and will be released with the next AppCenter release this month.

elsiehupp commented 2 years ago

Hi @cassidyjames thanks for your response. I did search through the issues, but I guess I didn’t use the right keywords!