Electron: BrowserWindow fullscreen and show

Created on 26 Oct 2015  路  3Comments  路  Source: electron/electron

Electron 0.34.1
Windows 10

When creating a new window with parameters show: false and fullscreen: true
the window still showing

var window = new BrowserWindow({
  show: false,
  fullscreen: true
});
platforwindows

Most helpful comment

@zcbenz the initial thought was creating a window that will be in fullscreen mode but i will decide when to show it or not..

All 3 comments

The fullscreen: true property means showing the window in fullscreen state, which conflicts with the show: false. I don't think there is a correct behavior when two conflicting properties are used together.

@zcbenz the initial thought was creating a window that will be in fullscreen mode but i will decide when to show it or not..

@zcbenz I am also same problem, is there any way I can store how I want my window to be, and then when I use window.show(), it should show.

Was this page helpful?
0 / 5 - 0 ratings