Fixed bug when application shows wrong layout after rotation
Merge pull request #828 from Bars107/sherpafy

Fixed bug when application shows wrong layout after rotation