![]() minHeight Integer (optional) - Window's minimum height.minWidth Integer (optional) - Window's minimum width.center boolean (optional) - Show window in the center of the screen.Page's size, which means the actual window's size will include windowįrame's size and be slightly larger. useContentSize boolean (optional) - The width and height would be used as web.y Integer (optional) - ( required if x is used) Window's top offset from screen.x Integer (optional) - ( required if y is used) Window's left offset from screen. ![]() height Integer (optional) - Window's height in pixels.width Integer (optional) - Window's width in pixels.It creates a new BrowserWindow with native properties as set by the options. On Linux many desktop environments do not support hiding a modal window.On Linux the type of modal windows will be changed to dialog.When parent window moves, while on Windows and Linux child windows will not On macOS the child windows will keep the relative position to parent window.On macOS modal windows will be displayed as sheets attached to the parent window.State is hidden in order to minimize power consumption. It is recommended that you pause expensive operations when the visibility Visible even if the window is minimized, occluded, or hidden. If backgroundThrottling is disabled, the visibility state will remain.State will be visible despite the window actually being hidden. If a BrowserWindow is created with show: false, the initial visibility.Visibility state will be hidden only when the window is minimized or Window, the visibility state will be hidden. Additionally, on macOS, the visibility state also tracks the window.On all platforms, the visibility state tracks whether the window is.The Page Visibility API works as follows:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |