Get X, Y coordinates of Element and Console.Log

Hello,

I have a dynamic strip which I have put some code behind to auto adjust in height to the browser viewport. I would like to be able to Console.Log the X, Y coordinates of the first element beneath it - in my case, a floating header.

Any ideas?

Cheers,

Cal

Solved and code example

export function titleStrip1_click(event) {
{
wixWindow.getBoundingRect()
.then((windowSizeInfo) => {
let windowHeight = windowSizeInfo.window.height; //
let windowWidth = windowSizeInfo.window.width; //
let documentHeight = windowSizeInfo.document.height; //
let documentWidth = windowSizeInfo.document.width; //
let scrollX = windowSizeInfo.scroll.x; //
let scrollY = windowSizeInfo.scroll.y; //
console.log(windowSizeInfo);
wixWindow.scrollTo(0, windowHeight)
.then(() => {
console.log(“Done with scroll”);
});
})
}
}