Fixed auto-resize issue for default viewport

Fixes #23