Skip to content

ElectronBrowserWindow.setContentBounds method

ElectronBrowserWindow › setContentBounds

Unofficial

Resizes and moves the window's client area to the supplied bounds.

Signature:

setContentBounds(bounds: ElectronRectangle, animate?: boolean | undefined): void

Parameters:

ParameterTypeDescription
boundsElectronRectangleThe new content bounds.
animate?boolean | undefinedWhether to animate the transition.

Returns: void