fix for lanscape mode on iOS devices

from: http://bross.in/1eFnUX5