profile
viewpoint

Ask questionsStrange overflowing window when maximizing a frameless window

  • Electron version: 0.37.4
  • Operating system: Windows

When I maximize my frameless electron window a small part of the window in an unmaximized state is visible on a secondary monitor.

Screenshot electronbug

You can visibly see the "line between the monitors" and you can see some really strange overhanging content that is over that line.

Steps to reproduce

  1. Open an electron app
  2. Maximize the app on your secondary display
  3. Look closely for the overflow onto your primary display

This might take a few times to trigger, it appears to do it about 70% of the time :confused:

electron/electron

Answer questions TheWhoAreYouPerson

Still an issue for me as well on Windows using VSCode, and Discord; however not an issue with Spotify. Manifests for me just as going past the screen edges, without bleeding onto another monitor. This is enough to miss the locations of things like errors/warnings shown on the outside of the scrollbar in VSCode.

Should note that this only happens on my non-primary 1080p monitors (100% scaling, one horizontal, one vertical), and this doesn't happen on my primary 2160p screen at 250% scaling.

Discord shows these versions in the sidebar on the preferences screen:

Stable 63252 (7138483)
Host 0.0.306
Windows 10 64-Bit (10.0.19041)

VSCode:

Version: 1.47.0-insider (system setup)
Commit: 04203498480e48be84d86f5763e126c7c5bf22e0
Date: 2020-06-30T09:00:22.588Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041

Spotify only gives a version 1.1.37.690.g8f3b16fc in the About screen.

useful!

Related questions

execFile got Error: spawn EACCES under asar hot 4
loadURL / loadFile calls throw "ERR_ABORTED (-3) error" if location.hash or history.pushState called on the page before page loaded hot 3
Devtools errors hot 3
Electron 5 & Puppeteer: Target.createTarget - Not supported hot 2
protocol.intercept{Any}Protocol handler ability to call original handler hot 2
Desktop audio capture does not work on Mac and Linux hot 2
Warning on titlebarAppearsTransparent when setting frame: false or titleBarStyle: hidden hot 2
Electron 7 beta fails to install hot 1
Mac App Store Private API Rejection: Electron 5.0.10 hot 1
Mac App Store Private API Rejection: Electron 5.0.10 hot 1
webContents.debugger.sendCommand('Emulation.setTouchEmulationEnabled' .... not work hot 1
[Discussion] Requiring Native Modules in the Renderer Process to be NAPI or Context Aware hot 1
Mac App Store Private API Rejection: Electron 5.0.10 hot 1
.isMaximized() always returns false even when window is maximized. - electron hot 1
getDisplayMedia with Chrome 72 throwing Not Allowed hot 1
source:https://uonfu.com/
Github User Rank List