Resize to 1x1 on deactivate

Fixes #378.