bug with window.resizeTo
I'm new to node-webkit, so I'm not sure whether it is a bug.
The size of window is 120px*33px

Then I resized the window size with window.resizeTo(200,100):

And then, when I want to resize it back to 120px*33px, the width works currently, but height failed, the height remains 100px:

Then I tested some cases, and found that the height of window can't be resized less than 100px.
Is this a bug? Or it's excepted that the height can't be less than 100px?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Hi @TooooBug thanks for reporting. Can you please offer me the system information? (If is Linux or Windows, I can try to fix if it is a bug). A simple demo that can reproduce the bug will help also.
OS X 10.8.3
node-webkit version Version 27.0.1430.0 (1430.0)
If you can not reproduce the bug, I'll upload the demo later. Thanks very much!
Sorry, as I said, I'm new to node-webkit, so I'm not sure about your orgnization and members. Could you please help me @ someone that can handle this probelm. Thanks very much!
I looked up page 1 of the issues list, and found that almost all problem on Mac remains no comments. :(
@TooooBug it works for me. The height can be resized to less than 100px on my mac.
@TooooBug I also can resize to less than 100px on my mac.
I tried a number of things including setting the window size programmatically but the only way I could recreate something similar to your description is by having the min_height set in package.json to 100. The resizeTo calls are not limited by the min_height it seems.
http://rob.cdc.im/macpw.zip You can get the demo here and see the problem.
@TooooBug I think you can use the native UI API of node-webkit: Window to manipulate the window. This should work as expected in every platform.
I have the same bug on Mac. I reported it here before: https://github.com/rogerwang/node-webkit/issues/1711#issuecomment-57849283
Just encountered this bug.
Fixed by using the native resizeTo() (from gui.Window.get) as opposed to window.resizeTo. However, some issue with 100px height still exists at least on OS X, because resizing to heights less than 100px, requires accounting for the window frame containing controls (which on OS X is 23px).
i.e: I want to resize to 120px: gui.Window.get().resizeTo(something, 120) - works fine I want to resize to 50px: gui.Window.get().resizeTo(something, 50) - nope, window height ends up being 27px.
Doing gui.Window.get().resizeTo(something, 50 + 23) solves the problem.
This should be working with latest version now.
In 0.13 we changed to an optimized architecture so more features can be supported, see http://nwjs.io/blog/whats-new-in-0.13/ and it's good for keeping up with Chromium upstream -- we released with Node.js v6.0 and new Chromium versions within 1 day after upstream release.
The new version would fixed many issues reported here and we're scrubbing them. This issue is closed as we believe it should be fixed. Please leave a message if it isn't and we'll reopen it.