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:

ParameterTypeDescription
xnumberThe x coordinate.
ynumberThe y coordinate.
animate?boolean | undefinedWhether to animate the transition.

Returns: void