Skip to content

Commit 2c4a782

Browse files
author
Aleksandr Sychev
committed
Merge branch 'release/0.5.4'
2 parents 19882a2 + bec95f0 commit 2c4a782

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Pod/Classes/ASYSimpleChatTextViewHandler.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,8 @@ - (CGFloat)currentHeight {
260260

261261
- (NSUInteger)currentNumberOfLines {
262262
CGFloat caretHeight = [self caretHeight];
263-
CGFloat totalHeight =
264-
[self currentHeight] + self.chatTextView.textContainerInset.top + self.chatTextView.textContainerInset.bottom;
265-
NSUInteger numberOfLines = (totalHeight / caretHeight) - 1u;
263+
CGFloat currentHeight = [self currentHeight];
264+
NSUInteger numberOfLines = (currentHeight / caretHeight);
266265
return numberOfLines;
267266
}
268267

0 commit comments

Comments
 (0)