Reputation: 567
I'm having trouble making and electron browser the full screen width, but to maintain the minimize/maximize buttons. Using the following does what I want, but I loose my toggle buttons by doing so. Is there an alternative method I can use?
window.setFullScreen(true);
Upvotes: 1
Views: 74
Reputation: 4116
You can use window.maximize()
To do it on startup, try this:
win = new BrowserWindow({show: false})
win.maximize()
win.show()
Upvotes: 3