Window level User Agent string, window shadows, and -webkit-app-region woes

5 views
Skip to first unread message

adamw...@gmail.com

unread,
Feb 11, 2013, 1:17:19 PM2/11/13
to node-...@googlegroups.com
Hey all, 

Currently running into 3 issues that maybe someone here will have an idea about.

First off, I'm currently writing an application that needs to spoof the UA string on sub-windows of the App. Right now, we only seem to have control over this at the Application level. Is there any way around this? 

Secondly, is there a way to disable window shadows on Mac OS? This one isn't as major, but kind of annoying, as I want to have child windows that are on top of each other and it looks kind of funny. 

Lastly, -webkit-app-region: drag; doesn't seem to work on windows that are set to frame:true. Is this by design? I want the native UI chrome, but I also need other regions to be draggable. So far this has led me to recreate "native" styling on the windows, but that seems less than optimal. 

Thanks a ton for any help, and also thanks for your hard work on node-webkit. I've really enjoyed working with it.

-Adam Welling

张朝滨

unread,
Feb 11, 2013, 8:26:18 PM2/11/13
to node-...@googlegroups.com
On Tue, Feb 12, 2013 at 2:17 AM, <adamw...@gmail.com> wrote:
Hey all, 

Currently running into 3 issues that maybe someone here will have an idea about.

First off, I'm currently writing an application that needs to spoof the UA string on sub-windows of the App. Right now, we only seem to have control over this at the Application level. Is there any way around this?  

Secondly, is there a way to disable window shadows on Mac OS? This one isn't as major, but kind of annoying, as I want to have child windows that are on top of each other and it looks kind of funny. 

Lastly, -webkit-app-region: drag; doesn't seem to work on windows that are set to frame:true. Is this by design? I want the native UI chrome, but I also need other regions to be draggable. So far this has led me to recreate "native" styling on the windows, but that seems less than optimal. 
 
Yes, this design is following the chrome packaged app. From the nw code in the NativeWindowWin::UpdateDraggableRegions we can see the reason. When it has frame, this function just return and nothing happen.
 

Thanks a ton for any help, and also thanks for your hard work on node-webkit. I've really enjoyed working with it.

-Adam Welling

--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
  

--
@zhchbin Chaobin Zhang (张朝滨)
Reply all
Reply to author
Forward
0 new messages