Window.setInnerSize

Function/Meaning
Sets the client size
Type
Method of the Window class
Syntax
setInnerSize(width, height)
Arguments
width Specifies the width of the client area.
height Specifies the height of the client area.
Return Value
None (void)
Description
Specifies the client size of the window.
The client area is the region within the window where layers can be displayed.
Setting this size will cause the window size to change accordingly.
When specifying the client size, it is more efficient to use this method to set both at once rather than setting the Window.innerWidth and Window.innerHeight properties individually.
Reference
Window.innerWidth
Window.innerHeight