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

Minimize & Maximize events not working properly #6053

Closed
Leprosy opened this issue Jul 25, 2017 · 6 comments
Closed

Minimize & Maximize events not working properly #6053

Leprosy opened this issue Jul 25, 2017 · 6 comments

Comments

@Leprosy
Copy link

Leprosy commented Jul 25, 2017

I've the following code:

// Listen window events
var win = nw.Window.get();
win.on('maximize', function() {
    console.log("maximized")
});
win.on('minimize', function() {
    console.log("minimized")
})

Using the maximize and minimize buttons on the top right of the app don't trigger any event. However,
when I maximize and THEN restore the window, the maximized message appears. I got the same effect using win.maximize() and then win.restore(). I haven't found a way to fire the minimize event.

@Christywl
Copy link
Contributor

The code works fine for me on Linux/Windows with nwjs-sdk-v0.23.7.
6053

@Leprosy
Copy link
Author

Leprosy commented Jul 26, 2017

The process.versions["nw"] value is 0.22.3

I think I need an update...

@Leprosy
Copy link
Author

Leprosy commented Jul 26, 2017

Updated to nwjs-skd-v0.24.0 on linux...same issue :S

@Christywl
Copy link
Contributor

I try nwjs v0.24.0, it works fine for me. Click the maximize button of the app, maximize event is triggered, then click the minimize button of the app, minimize event is triggered.

@Leprosy
Copy link
Author

Leprosy commented Jul 27, 2017

No, on my app the maximize event is triggered when the window is restored, and the minimize is never triggered :S

@stale
Copy link

stale bot commented Jul 22, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 22, 2018
@stale stale bot closed this as completed Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants