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

Parameters:

ParameterTypeDescription
boundsPartial<ElectronRectangle>The new bounds.
animate?boolean | undefinedWhether to animate the transition.

Returns: void