Skip to content

[Bug]: WCO on Windows occludes dev tools #34129

Closed

Description

@sbatten

Preflight Checklist

Electron Version

17.4.1

What operating system are you using?

Windows

Operating System Version

Windows 11

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Using WCO and frameless windows on Windows, the WCO does not occlude the top right corner of the dev tools when they are placed on the right side.

Actual Behavior

Using WCO and frameless windows on Windows, the WCO occludes the top right corner of the dev tools when they are placed on the right side.

Testcase Gist URL

No response

Additional Information

No response

Activity

  1. codebytere commented on May 9, 2022

    @codebytere
    Member

    Thanks for reporting this and helping to make Electron better!

    Because of time constraints, triaging code with third-party dependencies is usually not feasible for a small team like Electron's.

    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.

    I'm adding the blocked/need-repro 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.

  2. added
    blocked/need-repro
    on May 9, 2022
  3. sbatten commented on May 12, 2022

    @sbatten
    Author

    @codebytere for whatever reason, fiddle is not letting me post to a gist. The whole repro is very simple. Here is the full fiddle code
    image

    The only important part is this set of options for BrowserWindow

        {
          frame: false,
          titleBarOverlay: true,
          titleBarStyle: "hidden"
        }

    Then open dev tools in the window that is created and see the native controls occlude the dev tools

  4. codebytere commented on May 12, 2022

    @codebytere
    Member
  5. added and removed
    blocked/need-repro
    on May 12, 2022
  6. clavin commented on May 12, 2022

    @clavin
    Member

    Can confirm this happens. The window controls cover up the dev tools, most notably the settings, customization, and close buttons of the devtools (all very important!)

    It seems Chrome avoids this issue by always opening the devtools detached on all PWAs (not restricted to just WCO windows, interestingly) and the dev tools do not allow docking on the window.

  7. added
    status/confirmed
    on May 12, 2022
  8. panther7 commented on Jun 1, 2022

    @panther7
    Contributor

    electron v19.0.1, windows 11

    2022-06-01 10 14 44

  9. self-assigned this
    on Aug 3, 2022
  10. LegendTheDeveloper commented on Mar 6, 2025

    @LegendTheDeveloper

    Hello, this error is currently present in vs code (using lastest version of VS Code, Windows 11)

  11. mlaurencin commented on Mar 6, 2025

    @mlaurencin
    Member

    @ArturoRSX If you can make a reproduction of this issue with only the code necessary, feel free to make a new issue including that reproduction (Electron Fiddle is a good resource for that). If you cannot, I suggest you file an issue with VS Code first.

  12. LegendTheDeveloper commented on Mar 6, 2025

    @LegendTheDeveloper

    Hello @mlaurencin

    There's no code.

    Just do this:

    1. Install Visual Studio Code
    2. Open Developer Tools in VS
    3. In the Developer Tools Window, Click in the 3 dots -> Dock to right

    And that's all.
    Now the Windows buttons are occluding a section of the dev tools window.

    Lastest update of Visual Studio Code and Windows 11

  13. mlaurencin commented on Mar 10, 2025

    @mlaurencin
    Member

    @ArturoRSX Because of time constraints, triaging code with third-party dependencies is usually not feasible for a small team like Electron's. Please report your issue to VS Code. If they direct you back here, since this specific issue has already been marked as closed, please make a new issue with your information.

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

Metadata

Metadata

Assignees

Labels

17-x-y18-x-y19-x-ybug 🪲platform/windowsstatus/confirmed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions