Is it possible to make my app always 100% width and height?

5 views
Skip to first unread message

Paul Anthony Webb

unread,
Aug 27, 2014, 7:04:23 PM8/27/14
to node-...@googlegroups.com
Right now, whenever I reload my app with Cmd+R, it reloads (expected) but also changes the window size to what is set in package.json. I am using nw.win.reload() to allow this to happen. Can I just make the window contents reload, without changing window dimensions?

super...@gmail.com

unread,
Aug 29, 2014, 9:43:30 PM8/29/14
to node-...@googlegroups.com
Just use
Window.enterFullscreen()

//or

Window.maximize()

after reload.

Paul Anthony Webb

unread,
Aug 30, 2014, 8:50:54 AM8/30/14
to node-...@googlegroups.com, super...@gmail.com
What happens if my window is resized? Maximizing wouldn't be ideal option.

super...@gmail.com

unread,
Aug 30, 2014, 9:22:37 AM8/30/14
to node-...@googlegroups.com
Can you check those links?, maybe this is what you are looking for:
------------------
https://github.com/rogerwang/node-webkit/wiki/Preserve-window-state-between-sessions
------------------
https://github.com/rogerwang/node-webkit/wiki/Screen
Reply all
Reply to author
Forward
0 new messages