Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left an Top are always 0 #191

Open
bforpc opened this issue Nov 28, 2024 · 0 comments
Open

Left an Top are always 0 #191

bforpc opened this issue Nov 28, 2024 · 0 comments

Comments

@bforpc
Copy link

bforpc commented Nov 28, 2024

Hi,

this code returns for left and top always 0, tryed in Safari, Chrome and firefox on Linux and Macos.
Width, height, x and y are correct values.

var winbox = new WinBox();

winbox.top = 50;
winbox.right = 50;
winbox.bottom = 50;
winbox.left = 50;

// update window if needed:
winbox.resize().move();

console.log("Current Viewport Top:", winbox.top);
console.log("Current Viewport Right:", winbox.right);
console.log("Current Viewport Bottom:", winbox.bottom);
console.log("Current Viewport Left:", winbox.left);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant