Get Frame Dimensions with BX24.getScrollSize
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
The method BX24.getScrollSize returns the dimensions of the current frame's content as an object with the fields scrollWidth and scrollHeight.
Object BX24.getScrollSize()
Parameters
No parameters.
Code Example
How to Use Examples in Documentation
BX24.init(function () {
const size = BX24.getScrollSize();
console.log(size.scrollWidth, size.scrollHeight);
});
Response Handling
The method synchronously returns an object containing the dimensions of the content.
Returned Data
|
Name |
Description |
|
result |
An object with the dimensions of the frame's content (detailed description) |
Object result
|
Name |
Description |
|
scrollWidth |
The width of the frame's content in pixels |
|
scrollHeight |
The height of the frame's content in pixels |
Continue Learning
Was the article helpful?
Previous