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

Fixes #2800.
Removes space in empty parenthesis to match better with coding
standard.