Skip to content

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): void

Parameters:

ParameterTypeDescription
boundsPartial<ElectronRectangle>The new bounds.
animate?booleanWhether to animate the transition.

Returns: void