【发布时间】:2014-03-16 00:52:13
【问题描述】:
在最小化 node-webkit 窗口之前,它看起来像这样:
恢复 node-webkit 窗口后,它看起来像这样:
package.json
{
"name": "Gallay",
"description": "Simplified Billing",
"version": "0.1",
"main": "index.html",
"window": {
"icon": "icons/16.png",
"show": true,
"toolbar": false,
"frame": true,
"position": "center",
"width": 507,
"height": 570,
"min_width": 507,
"min_height": 570,
"max_width": 507,
"max_height": 570
}
}
我需要固定宽度,同时最小化和恢复 node-webkit 窗口。如何解决上述问题?
【问题讨论】:
-
你试过用万能的
$(window).resize()修复窗口的宽度吗? -
@grmmph 在你提到之后,我试过了。恢复时正在调整窗口大小。
标签: javascript webkit node-webkit chromium-embedded