We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 19882a2 + bec95f0 commit 2c4a782Copy full SHA for 2c4a782
1 file changed
Pod/Classes/ASYSimpleChatTextViewHandler.m
@@ -260,9 +260,8 @@ - (CGFloat)currentHeight {
260
261
- (NSUInteger)currentNumberOfLines {
262
CGFloat caretHeight = [self caretHeight];
263
- CGFloat totalHeight =
264
- [self currentHeight] + self.chatTextView.textContainerInset.top + self.chatTextView.textContainerInset.bottom;
265
- NSUInteger numberOfLines = (totalHeight / caretHeight) - 1u;
+ CGFloat currentHeight = [self currentHeight];
+ NSUInteger numberOfLines = (currentHeight / caretHeight);
266
return numberOfLines;
267
}
268
0 commit comments