Skip to content

ElectronBrowserWindow.setSize method

ElectronBrowserWindow › setSize

Unofficial

Resizes the window to width and height.

Signature:

setSize(width: number, height: number, animate?: boolean): void

Parameters:

ParameterTypeDescription
widthnumberThe new width.
heightnumberThe new height.
animate?booleanWhether to animate the transition.

Returns: void