[Bug #8646] fixed check for portrait-mode in orientationchange-handler