Top
Window - Controlling the size
Window
<Window /> size can be specified by using the size and/or defaultSize props and the setSize method or by keyboard navigation.
<Window />'s position can be either controlled or uncontrolled.
For controlled behaviour, the position can be controlled with size prop, and by listening to onResize.
When size is uncontrolled, size change is handled internally within component's state, an initial size ca be specified width defaultSize.
When a <Window /> component is configured with keepAspectRatio=true, changing size by dragging, it will keep the aspect ratio based on it's initial size.
A <Window /> component can specify a region which it respects when resized.
By default it is constrained to the browser viewport.