asticode/go-astilectron

Position window?

Closed this issue · 3 comments

Hey i see there is an option to center the window but is there an option to position the window at the bottom right? or top right?

You need to use a combination of x and y and the display attributes (such as width and height).

Let me know how it goes

I am aware of that but is it possible to have it auto set there? Every computer is gonna have diffrent axis of bottem right or top right is there away to have it auto set?

I am aware of that but is it possible to have it auto set there?

Unfortunately I don't think so

Every computer is gonna have diffrent axis of bottem right or top right

If you use the display attributes as I mentionned, it will contain width and height of the user's screen, therefore if you do the correct computations you'll be able to adapt the behavior to every setups