Skip to content

"as_desktop" doesn't work in v0.11.4 #2833

Open
@trappedinspacetime

Description

@trappedinspacetime

I could not make it work with node-webkit 0.11.4
I am on Ubuntu 14.04 32 bit platform.
I expected "as_desktop" :true to stick the gadget onto desktop but it is still floating on desktop.
package.json:

 {
     "name": "weather-gadget",
     "main": "index.html",
     "window": {
         "title": "Window Test",
         "toolbar": false,
         "position": "mouse",
         "width": 405,
         "height": 265,
         "resizable": false,
         "show": true,
         "frame": false,
         "transparent": true,
         "as_desktop": true,
         "kiosk":false
     }

 }

index.html:

 <html>
 <head>
 <style>
 html, body {
   margin: 0;
   padding: 0;
   height: 100vh;
 }
 .wrapper {
   box-sizing: border-box;
   height: 100vh;
   overflow: auto;
   border-radius: 1em;

   background: rgba(0,0,0,.8);
   border: 1px solid #333;
   -webkit-app-region: drag;
 }
 div#wrapper-BmaS {
   background-color: transparent  !important;
 }
 span#url-BmaS {
   background-color: transparent  !important;
 }

 span#h2-BmaS {
   background-color: transparent  !important;
 }
 </style>
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
 <script>
 setTimeout(function(){
   var frame = $("#widget_iframe")[0];
   var bdy = $(frame.contentDocument).find("body"); 
   bdy.css ("background-color","transparent");
 }, 10000);

 </script>
 </head>
 <title>
 </title>

 <body>
 <div style="filter:alpha(opacity=50); opacity:0.5;" class="wrapper" id='wrapper-BmaS'><span id='h2-BmaS'><a id='url-BmaS' href="http://www.weatherhq.co.uk/trabzon">Weather Trabzon</a></span><div id='load-BmaS'></div><a id='url_detail-BmaS' href="http://www.weatherhq.co.uk/trabzon">Detailed forecast</a></div><script type="text/javascript" src="http://widget.weatherhq.co.uk/widgetv3/widget_request/738648?bgcolor=6699cc&border=none&days=5&key=-BmaS&lang=en&maxtemp=yes&size=x215&textcolor=ffffff&unit=C&wind=yes" charset="utf-8"></script>


 </body>
 </html>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions