Electron change frame on/off from remote

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 17:12:51

问题


Can someone tell me if it's possible to toggle frame property of BrowserWindow object using remote ?

I have tried to add this property to remote.getCurrentWindow().setBounds but that doesn't work.

thanks


回答1:


You cannot do that.

Here's the rejected feature request for this: github.com/electron/electron/issues/1145

Quote from zcbenz

Enabling removing window frame on the fly will add too much complexity to the code, and it is not easy to implement. I don't think it deserves the efforts, even though it is useful in some rare cases.

Nothing changed from that time in this matter

As it's mentioned in the issue you can work around this by destroying the current window and create an identical with different frame property if that fits for you



来源:https://stackoverflow.com/questions/52300629/electron-change-frame-on-off-from-remote

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!