Skip to content

ElectronBrowserWindow.setSize method

ElectronBrowserWindow › setSize

Unofficial

Resizes the window to width and height.

Signature:

setSize(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