Black window frame during electron start when BrowserWindow.maximize() is used


If I start my app maximized using BrowserWindow.maximize(), for example, using the electron-quick-start, I see a black frame (or black rectangle) for some seconds before the rest of the app loads and the frame goes away.

I do not see this when the app does not start maximized.

I am using Windows 10 1709. Anybody else seeing this? Does anybody knows how to remove it?



i see this too. don’t have idea what will be the cause.
however, this can be workaround/solution.

firstly, you create window with show:false, then you wait for ready-to-show event to let it maximize.

mainWindow = new BrowserWindow({show: false})
 mainWindow.on('ready-to-show', ()=>{