getBoundingRect( )


Returns information about the window.

The getBoundingRect() function returns a Promise that resolves to an object containing information about the current window's size, the document's size, and the current scroll position.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<WindowSizeInfo>
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?