When creating new window using window.open it opens window with fixed height/width and doesn't honour passed height/width
I met the same problem, your problem has been solved? How do you solve?
I have the same Issue
Version 0.19.4 (both sdk and production)
OS Windows 10 Pro 64-bit, tried with ia32 and x64
Code
nw.Window.open('index.html', {
title: 'Title Goes Here',
position: 'center',
focus: true,
min_width: 1024,
min_height: 768,
fullscreen: true
}, function(win) {});
usingmin_width & min_height or just width & height or even using both have no effect on the issue.
created window in my case is 1024px 脳 799px.
as you can see width seems to be respected in my case but the height is not.
@HUN73R13 Your issue is Windows specific upstream bug. See #5337.
I don't think so, I am able to reproduce issue in Mac OS also
and upstream bug is related to height/width is off by some pixels then the passed height/width, but my issue is that whatever height/width you are passing it is showing popup with fixed height/width only, it is just ignoring the passed sizes
@silentsakky I was responding to @HUN73R13.
@ghostoy Oops :)
Still reproduced on Linux/Windows with nwjs-sdk-v0.21.2.
any updates on when this is going to be fixed?
@rogerwang are you working on this? if not, I'd like to investigate it.
@silentsakky your sample has the same result in chrome, did you try it on chrome?
Just checked with Chrome V57.0.2987.133 (64-bit) in mac, it is opening with proper window size
@Christywl please help to double check the test on Chrome on Linux, Mac and Windows.
Note that the issue is:
whatever height/width you are passing it is showing popup with fixed height/width only, it is just ignoring the passed sizes
Ok, I can reproduce now.
This is fixed in git and will be available in the next nightly build.
The fix was reverted temporarily for new issue
Should we reopen the issue then?
It is merged into nw22 branch since 0.22.0 is to be released soon and there is no further releases for 0.21.
Most helpful comment
https://github.com/nwjs/chromium.src/pull/77