修改package.json
给windows添加max_width max_height属性
参考:
"window": { "title": "project1", "toolbar": false, "frame": true, "show_in_taskbar":true, "width": 800, "height": 500, "position": "mouse", "min_width": 400, "min_height": 200, "max_width": 800, "max_height": 600 }
"window": {
"title": "project1",
"toolbar": false,
"frame": true,
"show_in_taskbar":true,
"width": 800,
"height": 500,
"position": "mouse",
"min_width": 400,
"min_height": 200,
"max_width": 800,
"max_height": 600
}
关于nw.js的package.json,这里有详细解释:
http://www.cnblogs.com/xuanhun/p/3656003.html |