bugfix orientation for iOS closes #2343 #2340

bugfix orientation for iOS closes #2343 #2340