void BX24.fitWindow([Function callback])

Changes the width and height of an application frame so that it fits the frame contents.

Due to browser restrictions, the method cannot reduce the frame size. Use the following technique to set the frame size precisely:

  • enclose the application in a container;
  • calculate the container extent;
  • set the frame size accordingly using BX24.resizeWindow.

See Also:

User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix24», 2001-2021