Can I specify the window size and position when starting node-webkit?

1 view
Skip to first unread message

Chen, Zhang Z

unread,
Nov 6, 2012, 11:29:17 PM11/6/12
to node-...@googlegroups.com
I need to control the size of nw window from command line. Is there any way to do it?
 

Zhao Cheng

unread,
Nov 7, 2012, 6:23:45 AM11/7/12
to node-...@googlegroups.com
No, it's not possible. But you can save the size in localStorage and
reset the size of window on startup, see example at:
https://github.com/rogerwang/node-webkit/wiki/Preserve-window-state-between-sessions

On Wed, Nov 7, 2012 at 12:29 PM, Chen, Zhang Z <zhang....@intel.com> wrote:
> I need to control the size of nw window from command line. Is there any way
> to do it?
>



--
Cheng
Intel Open Source Technology Center
Reply all
Reply to author
Forward
0 new messages