winbox icon indicating copy to clipboard operation
winbox copied to clipboard

Left an Top are always 0

Open bforpc opened this issue 1 year ago • 0 comments

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);

bforpc avatar Nov 28 '24 06:11 bforpc