The Wayback Machine - https://web.archive.org/web/20200527050758/https://github.com/nwjs/nw.js/issues/7214
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window.open() ignore width &height when main window is in fullscreen mode #7214

Open
liuyi opened this issue Nov 15, 2019 · 1 comment
Open

Window.open() ignore width &height when main window is in fullscreen mode #7214

liuyi opened this issue Nov 15, 2019 · 1 comment

Comments

@liuyi
Copy link

@liuyi liuyi commented Nov 15, 2019

NW.JS 0.42.1 MAC OS

  1. Main window options:
    "window": {
    "title": "",
    "fullscreen": true,
    "kiosk": false,
    "position": "center",
    "resizable": false,
    "min_width": 1920,
    "min_height": 1080
    }

  2. nw.Window.open(url,{width:400,height:300});

  3. the new window is openned, but with fullscreen.

@liuyi liuyi changed the title Window.open() ignore width &height Window.open() ignore width &height when main window is in fullscreen mode Nov 15, 2019
@Blatman
Copy link

@Blatman Blatman commented Nov 15, 2019

@rogerwang - not sure if it helps with this one but I tried the above parameters with 0.42.5 and works as expected with nw2 disabled. With nw2 the main window always opens at 640 x 480, the child window and menu window are OK.

Attached modified test app -

Window-Size-test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.