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:

ParameterTypeDescription
widthnumberThe new width.
heightnumberThe new height.
animate?boolean | undefinedWhether to animate the transition.

Returns: void