Fixed an issue for UITextfield with expanding size