Enable window to be resized larger than screen

Fixes #475.