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

ismaximized and event onmaximize #257

Closed
kevsmt opened this issue Dec 14, 2012 · 5 comments
Closed

ismaximized and event onmaximize #257

kevsmt opened this issue Dec 14, 2012 · 5 comments
Milestone

Comments

@kevsmt
Copy link

kevsmt commented Dec 14, 2012

Hi, when do we see this functions and events?

@kevsmt
Copy link
Author

kevsmt commented Dec 14, 2012

Thanks: #201

@kevsmt kevsmt closed this as completed Dec 14, 2012
@kevsmt
Copy link
Author

kevsmt commented Dec 16, 2012

i cant seem to make this work.

var gui = require('nw.gui');
gui.Window.get().on("maximize", function(){ console.log("triggerd"); });

Windows 7 64bit

@kevsmt kevsmt reopened this Dec 16, 2012
@kevsmt
Copy link
Author

kevsmt commented Dec 16, 2012

above works if i clicked on the maximize button on a window, and on window (alt) context menu. But when you double click the titlebar, it wont trigger the event.

@zhchbin
Copy link
Contributor

zhchbin commented Dec 22, 2012

@kevsmt @rogerwang I have found the reason of this bug. Will fix soon.

@kevsmt
Copy link
Author

kevsmt commented Dec 22, 2012

Please do add a isMaximized function API as well... use case is for custom frame titlebar buttons, if granted. do add api for isMinimized too.

rogerwang added a commit that referenced this issue Dec 22, 2012
[API][WIN] Fix maximize event doesn't trigger when double click the title bar. Fix #257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants