Skip to content

BrowserWindow: minHeight/minWidth broken on mixed DPI monitors on Windows in Electron 6.0.6 #20527

Closed

Description

@ToadKing

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 6.0.6, 6.0.12
  • Operating System:
    • Microsoft Windows [Version 10.0.18362.418]
  • Last Known Working Electron version:
    • 6.0.5

Expected Behavior

minHeight/minWidth is the same value on all monitors

Actual Behavior

minHeight/minWidth are much larger in size on lower DPI monitors

To Reproduce

Sample app: https://github.com/ToadKing/dpi-bug

To reproduce, you must have multiple monitors on Windows with different DPI levels. The primary monitor on your desktop should be a high DPI one, while a secondary monitor should be lower DPI.

Screenshots

High DPI primary monitor:
image

Lower DPI secondary monitor (stretches off the monitor):
image

Additional Information

The behavior works in 6.0.5, but is broken in 6.0.6. Might be #19928/#20001 or the Chromium upgrade?

Activity

  1. smildlzj commented on Oct 11, 2019

    @smildlzj

    +1

  2. sgd2z commented on Oct 22, 2019

    @sgd2z
    Contributor

    This might be related: #20683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions