Skip to content
Browse files

Use original maxheight

  • Loading branch information...
1 parent 32c4fff commit 7bc1f2797070e3316ea8175f0dd2f05ba607f551 @brandonhamilton committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 UIInputToolbarSample/Classes/UIInputToolbar/UIExpandingTextView.m
View
6 UIInputToolbarSample/Classes/UIInputToolbar/UIExpandingTextView.m
@@ -114,7 +114,7 @@ - (id)initWithFrame:(CGRect)frame
[self setMinimumNumberOfLines:1];
animateHeightChange = YES;
internalTextView.text = @"";
- [self setMaximumNumberOfLines:3];
+ [self setMaximumNumberOfLines:13];
[self sizeToFit];
}
@@ -159,7 +159,7 @@ -(void)setMaximumNumberOfLines:(int)n
NSString *newText = @"-";
internalTextView.hidden = YES;
internalTextView.delegate = nil;
- for (int i = 1; i < n; ++i)
+ for (int i = 2; i < n; ++i)
{
newText = [newText stringByAppendingString:@"\n|W|"];
}
@@ -182,7 +182,7 @@ -(void)setMinimumNumberOfLines:(int)m
NSString *newText = @"-";
internalTextView.hidden = YES;
internalTextView.delegate = nil;
- for (int i = 1; i < m; ++i)
+ for (int i = 2; i < m; ++i)
{
newText = [newText stringByAppendingString:@"\n|W|"];
}

0 comments on commit 7bc1f27

Please sign in to comment.
Something went wrong with that request. Please try again.