Skip to content

Commit 529f78d

Browse files
committed
2 parents a418ed3 + f9d7fb5 commit 529f78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JSMessagesViewController/Classes/JSMessagesViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,8 +414,8 @@ - (void)textViewDidChange:(UITextView *)textView
414414

415415
BOOL isShrinking = textViewContentHeight < self.previousTextViewContentHeight;
416416
CGFloat changeInHeight = textViewContentHeight - self.previousTextViewContentHeight;
417-
418-
if(!isShrinking && self.previousTextViewContentHeight == maxHeight) {
417+
418+
if(!isShrinking && (self.previousTextViewContentHeight == maxHeight || textView.text.length == 0)) {
419419
changeInHeight = 0;
420420
}
421421
else {

0 commit comments

Comments
 (0)