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:

Parameter Type Description
bounds ElectronRectangle The new content bounds.
animate? boolean | undefined Whether to animate the transition.

Returns: void