Fix layout issue with keyboard on ios8