Removing trailling whitespaces.
Fix on check of current orientation support.