Change Frame Size with BX24.resizeWindow

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.resizeWindow sends a command to change the size of the application frame based on the provided width and height.

void BX24.resizeWindow(Integer width, Integer height[, Function callback])
        

Parameters

Required parameters are marked with *

Name
type

Description

width*
integer|string

The width of the frame in pixels. The string '100%' stretches the frame to the full available width. Other values are parsed using parseInt, and a non-numeric value falls back to 100 pixels

height*
integer

The height of the frame in pixels. Inside the method, the value is parsed using parseInt and is only used if greater than 0

callback
function

The callback function that is executed after the resize command is sent

Code Example

How to Use Examples in Documentation

BX24.init(function () {
            BX24.resizeWindow(980, 700, function () {
                console.log('Resize command sent');
            });
        });
        

Response Handling

The method does not return any data (void).

Continue Learning