We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当想为程序设定一个固定的窗口大小时候,需要限制用户对程序窗口的大小进行拖动调整。但是使用官方的设定时候,在mac平台上可以禁用调整,当在windows平台上时候却依然可以。所以为了兼容两者,可以选择使用无边框来实现。
resizable
true
win = new BrowserWindow({ width: 800, height: 600, resizable: false });
win = new BrowserWindow({ width: 800, height: 600, frame: false, resizable: false });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
简述
当想为程序设定一个固定的窗口大小时候,需要限制用户对程序窗口的大小进行拖动调整。但是使用官方的设定时候,在mac平台上可以禁用调整,当在windows平台上时候却依然可以。所以为了兼容两者,可以选择使用无边框来实现。
官方文档
resizable
Boolean (optional) - Whether window is resizable. 默认值为true
。实现
mac
windows
参考文档
The text was updated successfully, but these errors were encountered: