Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Window position management #53

Open
smartfrigde opened this issue Feb 13, 2023 · 0 comments
Open

Window position management #53

smartfrigde opened this issue Feb 13, 2023 · 0 comments
Labels
new api Requested new API
Milestone

Comments

@smartfrigde
Copy link
Contributor

Electron allows developers to spawn the window at specific X/Y on the screen, an api to gather current position of the window would be also useful. An implementation respecting multi-monitor setups should be considered.

Example:

const Window = await Gluon.open('https://gluonjs.org', {
  x: 360,
  y: 200
});
Window.ipc.getWindowX = () => {
  return Window.Page.x;
};
Window.ipc.getWindowY = () => {
  return Window.Page.y;
};
@CanadaHonk CanadaHonk added the new api Requested new API label Feb 17, 2023
@CanadaHonk CanadaHonk added this to the 0.14.0 milestone Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new api Requested new API
Projects
None yet
Development

No branches or pull requests

2 participants