Overview
'Maximized' and 'Minimized' are considered states. The values returned by the Window.getBounds() method will reflect the bounds of the window while it is in the restored state.
The Window.getState() method can be used to evaluate the current state of a window.
The Window.addEventListner() supports 'maximized' and 'minimized' events and can be used to track the state of a window:
const win = fin.Window.getCurrentSync();
win.addListener('maximized', (e) => {
// your code here
});
Comments
0 comments
Please sign in to leave a comment.