Phaser API Documentation

  Version: 
updateSize()

Description:

Internal method that calls getBoundingClientRect on the node and then sets the bounds width and height into the displayWidth and displayHeight properties, and the clientWidth and clientHeight values into the width and height properties respectively.

This is called automatically whenever a new element is created or set.

Returns:
Description:

This DOM Element instance.

Since: 3.17.0