Repository navigation
Closed
Copy link
Labels
42-x-ybug 🪲component/BrowserWindowhas-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/windows
Description
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 a bug report that matches the one I want to file, without success.
Electron Version
42.3.3
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 Pro 23H2
What arch are you using?
x64
Last Known Working Electron version
41.4.0
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
getBounds() returns { width: 500, height: 75 } matching the constructor values.
Actual Behavior
getBounds() returns { width: 484, height: 67 } — 16px narrower, ~8px shorter.
Testcase Gist URL
Additional Information
Key Observations
- Only affects
resizable: falsewindows —resizable: trueworks correctly - Only affects
frame: falsewindows — framed windows unaffected - Reproducible at scale factor 1.0, so NOT a HiDPI/scaling issue
- Offset matches typical Windows shadow/border insets (8px per side)
- Introduced between 41.4.0 → 41.5.0
Electron Version: 41.5.0+ (regression from 41.4.0)
OS: Windows (confirmed with scale factor 1.0 and 2.0)
Platform: Windows 10/11
Summary
Frameless non-resizable BrowserWindow reports incorrect bounds since v41.5.0.
The actual window is smaller than the requested size by a fixed margin:
- Width: −16px (8px each side)
- Height: −8~9px (bottom only)
This suggests window frame/border insets are being incorrectly subtracted
from the client area even when frame: false is set.
Regression Range
| Version | Scale 1.0 | Scale 2.0 |
|---|---|---|
| 41.4.0 | ✅ Correct | |
| 41.5.0 | ❌ −16w/−8h | ❌ −16w/−7h |
The Sample result:
41.4.0✅
Scale factor: 2
--- resizable: false ---
Expected: 500 x 75
Actual: 500 x 76
--- resizable: true ---
Expected: 500 x 75
Actual: 500 x 75
Scale factor: 1
--- resizable: false ---
Expected: 500 x 75
Actual: 500 x 75
--- resizable: true ---
Expected: 500 x 75
Actual: 500 x 75
41.5.0 ❌
Scale factor: 2
--- resizable: false ---
Expected: 500 x 75
Actual: 484 x 68
--- resizable: true ---
Expected: 500 x 75
Actual: 500 x 75
Scale factor: 1
--- resizable: false ---
Expected: 500 x 75
Actual: 484 x 67
--- resizable: true ---
Expected: 500 x 75
Actual: 500 x 75
Metadata
Metadata
Assignees
Labels
42-x-ybug 🪲component/BrowserWindowhas-repro-gistIssue can be reproduced with code at https://gist.github.com/platform/windows
Type
Projects
- StatusShow more project fields🛠️ Fixed for Next Release
Activity
nikwen commentedon Jun 4, 2026
I believe this is a duplicate of #51679.
@mitchchn Can you confirm?
oalfroukh commentedon Jun 4, 2026
FYI, Last Known Working Electron version is
41.4.0and not the same as #51679 (41.2.0) and I'm not usingthickFrame: falsemitchchn commentedon Jun 5, 2026
This is the same issue as in #51465, fixed in #51562.
oalfroukh commentedon Jun 10, 2026
Hi @mitchchn
I see
v42.4.0was delivered without this fix. When do you think this fix will be backported to42-x-yas #51562 is marked asno-backport?