开发者

How to know if a Xul window is minimized?

Xul's window.sizemode documentation says:

When a window is minimized, the sizemode attribute is not updated. This is done so th开发者_运维百科at if a window is closed while minimized, its persisted sizemode attribute wouldn't be minimized.

so, is there a way to know when it's minimized?


The documentation you pointed said:

To get the window state from JavaScript code, use window.windowState.

The window.windowState link is broken. But I could find its documentation. It says you can check if the attribute windowState is equals to the constant STATE_MINIMIZED.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜