(Issue #3632) Handle landscape orientation