sean le roy
sean le roy

Reputation: 567

How to make electron browser fulle screen size?

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

Answers (1)

molamk
molamk

Reputation: 4116

You can use window.maximize()

To do it on startup, try this:

win = new BrowserWindow({show: false})
win.maximize()
win.show()

Notes

Upvotes: 3

Related Questions