Skip to content

Full-screen shows an unexpected frame around the app when setting frame property to false, #51240

Closed

Description

@palmaone

Preflight Checklist

Electron Version

41.2.2

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

40.9.2

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

The app renders as usual in full-screen mode, full-width and no gutters bellow either

Actual Behavior

The app starts and creates a window with frame prop set to false, full-screen shows a frame around the app, like a kind of padding or gutters bellow and on each side but not on top. If you try troubleshooting by trying passing different properties like thickFrame: false it will exhibit weird and unexpected behavior such as a black screen.

Testcase Gist URL

No response

Additional Information

I've been working on an app for some years now and just when updating to v41.2.2 the issue happens, so I downgraded to the last previous version until it worked again, that's v40.9.2. The issue seems to happen when I set frame to false.

new BrowserWindow({ width: Math.round(workAreaSize.width * (5 / 6)), height: Math.round(workAreaSize.height * (5 / 6)), minWidth: Math.round(workAreaSize.width * (3 / 4)), minHeight: Math.round(workAreaSize.height * (2 / 3)), show: false, frame: false, resizable: true, autoHideMenuBar: true, ...(process.platform === 'linux' ? { icon } : {}), webPreferences: { preload: join(__dirname, '../preload/index.js') // sandbox: true //enabled by default } })

Activity

  1. added theissue type on Apr 22, 2026
  2. moved this to 👀 Unsorted Items in 41-x-yon Apr 22, 2026
  3. changed the title [-]Full-screen shows a frame around the app,[/-] [+]Full-screen shows an unexpected frame around the app when setting frame property to false,[/+] on Apr 22, 2026
  4. nikwen commented on Apr 22, 2026

    @nikwen
    Member

    Thanks for reporting!

    1. Would you be able to download Electron Fiddle, use it to create a small sample app that allows maintainers to reproduce this issue, and upload it as a GitHub gist from Fiddle?
    2. Could you please share a screenshot of the issue?
  5. added
    blocked/need-repro
    on Apr 22, 2026
  6. electron-issue-triage commented on Apr 22, 2026

    @electron-issue-triage

    Hello @palmaone. Thanks for reporting this and helping to make Electron better!

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

  7. moved this from 👀 Unsorted Items to 🔄 Follow Up Before Stable in 41-x-yon Apr 22, 2026
  8. palmaone commented on Apr 26, 2026

    @palmaone
    Author

    Sorry I got really busy and missed the replies. I will try the recommendations next time for sure and I'm happy it was fixed and I would love the be more helpful next time by following the testing using the electron fiddle 🙌🏽🫱🏽‍🫲🏼

  9. removed
    blocked/need-repro
    on Apr 26, 2026
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

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions