mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05:00
docs: make setBounds take a Partial<Rectangle> (#19416)
This commit is contained in:
@@ -978,7 +978,7 @@ Closes the currently open [Quick Look][quick-look] panel.
|
||||
|
||||
#### `win.setBounds(bounds[, animate])`
|
||||
|
||||
* `bounds` [Rectangle](structures/rectangle.md)
|
||||
* `bounds` Partial<[Rectangle](structures/rectangle.md)>
|
||||
* `animate` Boolean (optional) _macOS_
|
||||
|
||||
Resizes and moves the window to the supplied bounds. Any properties that are not supplied will default to their current values.
|
||||
|
||||
Reference in New Issue
Block a user