Fix when keyboard show then rotation behaviour error issue.