Fix view selection when not in portrait.

Thanks to @lascorbe for discovering this and suggesting a fix (#31).