ElectronBrowserWindow.setBounds method
ElectronBrowserWindow › setBounds
Unofficial
Resizes and moves the window to the supplied bounds. Any properties not supplied default to their current values.Signature:
setBounds(bounds: Partial<ElectronRectangle>, animate?: boolean | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| bounds | Partial<ElectronRectangle> | The new bounds. |
| animate? | boolean | undefined | Whether to animate the transition. |
Returns: void