Fix handwriting IME layout issue.