Page MenuHome

File open dialog size larger than screen resolution
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Windows-10-10.0.17134-SP0 64 Bits
Graphics card: GeForce RTX 2080 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.83 (sub 1), branch: master, commit date: 2020-01-23 15:59, hash: rB6fff73e3f001
Worked: 2.80 and before

Short description of error
The file open dialog opens with a larger size than the resolution of the monitor it is on. I am using an external monitor with a larger resolution (4K) than my laptop. Now I run Blender on the larger monitor. It then opens the file open dialog on the smaller laptop screen, but makes the window as big as though it was on the larger monitor.

This is bad, as important parts of the window are not visible, like the options on the right, the file name at the bottom, the OK and Cancel buttons. You then have to manually rescale it. Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this.

The problem seems to be, that Blender opens the dialog on your "main" display, but calculates the size of the window based on the size of the parent Blender window.

Exact steps for others to reproduce the error

  • Use two monitors with different resolutions (eg. laptop + external 4K).
  • Set the smaller as the main display (if using the example setup, this is the default anyways).
  • Run Blender on the large monitor and go to "file open".
  • Window opens on the smaller screen, and portions of it are off-screen.

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Wed, Jan 29, 5:04 PM
Julian Eisel (Severin) changed the subtype of this task from "Report" to "Bug".Tue, Feb 4, 5:48 PM

This might not be a simple issue to solve (but there's also hope for a simple fix).
On one side because monitors with different DPIs are at play, which is always finicky. AFAIK we use the main monitor to clamp windows. So if your 4K monitor is the main window, that would explain this.
Another thing that might happen is that, if the window opens on a different monitor than the current Blender window, it may use the DPI hint of that window. If that is the issue, we could clamp the window size of the new window after it has been created (by sending a resize request). Then we have an updated DPI hint for this window.

The OS window-manager should generally prevent such large windows, although I'm afraid we can't rely on that.

Now this is even more annoying due to the fact that Blender does not remember the last size and location of the window, so every time it opens it like this.

Actually it should remember the size, at least it's supposed to. If it still opens at a bigger size than it was set to on last usage, that's again a hint towards DPI issues.


Will mark this as bug for now, although it's really close to being a known issue, not a bug.
I don't know when I'll find the time to investigate this properly. If somebody else has access to such a setup, you're welcome to check ;)

I played around with the file open window on both monitors and at different scale factors (Is that what you mean with DPI?).

  1. Running Blender on the smaller, "main" display:
    • The file open window opens on the same display, no issues. It remembers its size.
  1. Running Blender on the 4K display:
    • The file open window opens on the other display.
    • The size of the window depends on the scale settings of the 4K display, not where it opens. So with 100% I get a small window, 125% and 150% are larger, and with 175% (which is what I use) it is already larger than the screen.
    • it does not remember its size

I then set the 4K display as "main" in Windows. Then everything worked the other way around:

  1. Running Blender on the smaller display: the file open window opens on the 4K display and doesn't remember its size. Even though I did not set any scaling factor.
  2. Running Blender on the 4K "main" diplay: the file open window opens on the 4K display and works as expected.

So it seems that it doesn't matter on which monitor you have your Blender window open, the file open window always opens on the "main" display. If this happens to be another display, than the window size gets reset. And the size it gets reset to depends on the DPI of the display of the parent Blender window, not the display it opens on.