This is the code needed to calculate the height and width of a container in Phaser 3. The article can be found here.