fixing issue with ios not resizing when switching to landscape