Learn how to set and resize the dimensions of the browser window dynamically.
Want to jump into the code? See our resize example.
For a resizable browser window, you need to specify the following properties when creating a new browser instance.
The initial width of the browser window in pixels.
The initial height of the browser window in pixels.
The maximum browser window area in pixels.
This limits the browser
window size when resizing the window.
To resize the browser window, call the resize function with the desired width and height.
The resize
method on the Hyperbeam client allows you to resize and reposition the browser window dynamically. This can be useful for creating a custom sized browser window for your app or adapting to different screen sizes.
The width of the browser window in pixels.
The height of the browser window in pixels.
The maxArea
property on the Hyperbeam client stores the maximum browser window area in pixels. This is the maximum area that the browser window can be resized to, and is set by the max_area
property when creating a new browser instance.
Though you cannot change the maximum browser window area once set, you can still achieve a closer approximation to the desired dimensions by resizing the browser window to the closest allowed dimensions and then scaling the browser window to the desired dimensions while maintaining the same aspect ratio.
Want to jump into the code? See our resize example.
Learn how to set and resize the dimensions of the browser window dynamically.
Want to jump into the code? See our resize example.
For a resizable browser window, you need to specify the following properties when creating a new browser instance.
The initial width of the browser window in pixels.
The initial height of the browser window in pixels.
The maximum browser window area in pixels.
This limits the browser
window size when resizing the window.
To resize the browser window, call the resize function with the desired width and height.
The resize
method on the Hyperbeam client allows you to resize and reposition the browser window dynamically. This can be useful for creating a custom sized browser window for your app or adapting to different screen sizes.
The width of the browser window in pixels.
The height of the browser window in pixels.
The maxArea
property on the Hyperbeam client stores the maximum browser window area in pixels. This is the maximum area that the browser window can be resized to, and is set by the max_area
property when creating a new browser instance.
Though you cannot change the maximum browser window area once set, you can still achieve a closer approximation to the desired dimensions by resizing the browser window to the closest allowed dimensions and then scaling the browser window to the desired dimensions while maintaining the same aspect ratio.
Want to jump into the code? See our resize example.