Skip to content

ElectronBrowserWindow.setPosition method

ElectronBrowserWindow › setPosition

Unofficial

Moves the window to x and y.

Signature:

setPosition(x: number, y: number, animate?: boolean | undefined): void

Parameters:

Parameter Type Description
x number The x coordinate.
y number The y coordinate.
animate? boolean | undefined Whether to animate the transition.

Returns: void