You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Frameless window bounds are not consistent at DPI scales above 100% on Windows #51572
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
42.0.1
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 25H2
What arch are you using?
x64
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
No
Expected Behavior
Set the display scale to 175% in Windows and create an 800x600 window with frame: false. The dimensions of the window, content, and viewport should all be 800x600:
I can reproduce this issue to some extent in versions of Electron as far back as 38.0, but my recent work on resize insets (#50706) has made the drift more obvious (from 1px to 3px depending on scale and the values).
I believe it is caused by inconsistent rounding in Chromium when bounds are provided in DIP pixels.
Activity
getBounds()andsetBounds()are inaccurate on scale factors above 100% #51730 as a duplicate of this issue