Hi,
when I use the following code, I get ‘windowHeight is unread’ warning
import wixWindow from ‘wix-window’;
$w.onReady(function () {
//TODO: write your page related code here…
wixWindow.getBoundingRect()
.then( (windowSizeInfo) => {
let windowHeight = windowSizeInfo.window.height; // 565
let windowWidth = windowSizeInfo.window.width; // 1269
let documentHeight = windowSizeInfo.document.height; // 780
let documentWidth = windowSizeInfo.document.width; // 1269
let scrollX = windowSizeInfo.scroll.x; // 0
let scrollY = windowSizeInfo.scroll.y; // 120
} );
});
can you help me please?