Skip to content

ElectronBrowserWindow.setContentSize method

ElectronBrowserWindow › setContentSize

Unofficial

Resizes the window's client area to width and height.

Signature:

setContentSize(width: number, height: number, animate?: boolean | undefined): void

Parameters:

Parameter Type Description
width number The new width.
height number The new height.
animate? boolean | undefined Whether to animate the transition.

Returns: void