resize

Resizes the surface to match the size of the container.

Parameters

force Boolean optionalWhether to proceed with resizing even if the container dimensions have not changed.
In this article