mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add moveTop API to move window z-oder to top for win32, mac (#12485)
* add moveTop API to move window z-oder to top for win32, mac * BrowserWindow::MoveTop SetMethod bug fix
This commit is contained in:
@@ -1007,6 +1007,10 @@ can not be focused on.
|
||||
|
||||
Returns `Boolean` - Whether the window is always on top of other windows.
|
||||
|
||||
#### `win.moveTop()` _macOS_ _Windows_
|
||||
|
||||
Moves window to top(z-order) regardless of focus
|
||||
|
||||
#### `win.center()`
|
||||
|
||||
Moves window to the center of the screen.
|
||||
|
||||
Reference in New Issue
Block a user