Skip to main content

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

ParameterTypeDefault valueDescription
minWidthnumberMIN_VIEWPORT_WIDTHThe minimum window width for the feature to be available
minHeightnumberMIN_VIEWPORT_HEIGHTThe 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.