Skip to content

Electron 4.0.x: display size not applied correctly on secondary monitor #74872

@bpasero

Description

@bpasero

It looks like there is a regression with regards to restoring the window size on a multi monitor setup.

Steps:

  • be on macOS with 2 monitors
  • have native tabs enabled
  • to the left: macbook pro with resolution scaled & more space (primary, dock showing)
  • to the right: 2k monitor with resolution 2560x1440 (default for display)
  • start VSCode out of sources and move to secondary monitor
  • make the window large (e.g. almost the size of the monitor)
  • quit
  • start again

=> 🐛 the window size is smaller than the size you left it with

What I noticed is that this is dependent on the size of the primary monitor. In other words it seems as if the window on the second monitor is never becoming larger than the bounds of the first monitor. If I change the resolution of the macbook pro to be very small, the window size on the secondary monitor is also very small.

@deepak1556 this should get some priority, I am uncertain if it would qualify as electron blocker, but it certainly comes close.

Metadata

Metadata

Labels

electronIssues and items related to ElectronmacosIssues with VS Code on MAC/OS XupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions