BrowserWindow X and Y?


#1

Hey guys!

A client and I are looking to utilize Electron so we can move away from being a Windows only app. One of our pieces of software has to span across multiple monitors. I saw the Browser Window element which looks like it will do what we need it to (our app is web based and just runs in the browser right now and we would just navigate to that in the electron app) but I can’t find anywhere if you can set the X and Y of that window.

If you can do this, is it just the properties “x” and “y”? Or is there a better way to achieve this.

Cheers!


#2

Check out setBounds.


#3

Perfect, thank you!