The same packaged app.exe is not re-sizable in Windows 7 (as is desired), but in Windows XP it is. Is there any way to enforce no-resize in XP?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
This issue's title currently contains window.resizable == true, but it should be window.resizable == false to prevent resizing, am I right?
window.resizable == true
window.resizable == false
Yes. Sorry about the confusion.
A package JSON file like this works to prevent resizing in Windows 7, but not XP:
"description": "demo app of node-webkit",
"keywords": [ "demo", "node-webkit" ],
"title": "Scary Chicken",
thanks. I just updated the title.
Thank you for the detailed JSON.
I see now the same issue on my Windows XP.
I noticed a few inconsistencies aswell. resizable: false behaves differently between Windows (Windows 7) and Linux (customized Linux Mint running Gnome/Compiz). On Windows, win.resizeTo() works, on Linux i have to set resizable to true. While resizing the window on Linux with resizable: true won't make the window any bigger than the width/height of the document, Windows fills the remaining space with a white background.
It's not like window.resizable == false does not have _any_ effect in Windows XP: the “Maximize” button in the top right corner of the window is disabled, and the double click on the title is ignored.
However, the window can still be resized by mouse (dragging any border of the window).
Yes Mithgol, correct. The title of this issue is not accurate.
It should read instead "Setting window.resizable to false does not stop re-sizing of window in Windows XP."
Changed. Thank you.
Bug is still there with latest NW.js. Tested on Win XP SP3. The window border still can be resized.
I've just tested it on Linux (Xubuntu 14.04), window is still resizable after setting window.resizable to false or calling window.setResizable(false)
var gui = require('nw.gui');
var win = gui.Window.get();
works fine on Ubuntu 16.04 (Linux) Unity Desktop environment .