Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatically set BrowserWindow frame property #4652

Closed
feross opened this issue Mar 2, 2016 · 3 comments
Closed

Programmatically set BrowserWindow frame property #4652

feross opened this issue Mar 2, 2016 · 3 comments

Comments

@feross
Copy link
Contributor

feross commented Mar 2, 2016

I want to programmatically set the BrowserWindow's frame property after the window has already been created.

For example:

var win = new electron.BrowserWindow({ frame: true })
// ... some time goes by
win.setFrame(false)
// ... some time goes by
win.setFrame(true)

Is there any way to do this with electron? Can we add this?

@zcbenz
Copy link
Member

zcbenz commented Mar 5, 2016

No, it is not possible on most platforms.

@zcbenz zcbenz closed this as completed Mar 5, 2016
@feross
Copy link
Contributor Author

feross commented Mar 5, 2016

It is possible on OS X. Any chance it could be added just for OS X, like the other OS X specific frame features?

@ChrisMorrisOrg
Copy link

+1, QuickTime does this. It would be beneficial for video playback apps being built in Electron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants