【问题标题】:Node-webkit package.json fullscreen not workingNode-webkit package.json 全屏不工作
【发布时间】:2014-10-09 20:59:49
【问题描述】:

package.json 清单文件应该使应用程序全屏显示,但最后,程序保持其 min_width 和 min_height。包有问题(如果有,有什么问题)还是我应该在 index.html 中添加更多内容?

   {
      "name": "Demo",
      "main": "index.html",
      "window": {                            
      "title": "Demo",               
      "toolbar": false,                  
      "frame": false,                       
      "position": "mouse",                
      "min_width": 1024,                   
      "min_height": 768,                  
      "max_width": 1920,                  
      "max_height": 1080,                 
      "fullscreen": true,                  
      "resizable": true                          
      }
    }

提前致谢。

【问题讨论】:

    标签: json node-webkit


    【解决方案1】:

    移除 max_width 和 max_height。那些将尺寸限制为 800x600。

    https://groups.google.com/forum/#!topic/node-webkit/1n8rTqwv_V0

    【讨论】:

    • 您的数字不是问题中的数字,而是将它们设置为 1080x1920。此外,最好直接在答案中解释您的解决方案,而不是提供指向另一个论坛的链接,这可能会重新解决其问题,这将使该答案没有任何解释。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-29
    • 1970-01-01
    • 1970-01-01
    • 2012-08-12
    • 1970-01-01
    • 1970-01-01
    • 2015-10-02
    相关资源
    最近更新 更多