Electron: Programmatically set BrowserWindow frame property

Created on 2 Mar 2016  路  3Comments  路  Source: electron/electron

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?

Most helpful comment

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

All 3 comments

No, it is not possible on most platforms.

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tenry92 picture tenry92  路  3Comments

rhnorskov picture rhnorskov  路  3Comments

EladBezalel picture EladBezalel  路  3Comments

tengyifei picture tengyifei  路  3Comments

christiangenco picture christiangenco  路  3Comments