shouldResizeWindow
function shouldResizeWindow(minWidth, minHeight): boolean;
Returns if the window should be resized for a feature to be available based on a minimum width and height.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
minWidth | number | MIN_VIEWPORT_WIDTH | The minimum window width for the feature to be available |
minHeight | number | MIN_VIEWPORT_HEIGHT | The minimum window height for the feature to be available |
Returns
boolean
Remarks
We will use this function to display a message when the window is too small. In this case the window should be made bigger to enable certain features.