Fixed globe resize when the canvas size changes.

This will check if the globe canvas needs to be resized on each frame, fixing the div resize issue. This is the same behavior used in the CesiumWidget's render loop.