How do I fix screen orientation problem?

Assuming I understood the problem correctly, I have a working fix for the buildserver in the queue:

4 Likes