Fix orientation bugs

Maintain fontsize and and adapt width when switching to landscape mode.
Merge pull request #2862 from mischah/fix-orientation-bugs