Updates threejs onresize behavior to adjust viewport based on the
webgl canvas without the unused border included.

Fixes #2800.