Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Growing TextView indefinitely #6

Open
micnguyen opened this issue Mar 10, 2015 · 1 comment
Open

Growing TextView indefinitely #6

micnguyen opened this issue Mar 10, 2015 · 1 comment

Comments

@micnguyen
Copy link

Hi,

I'm loving the simplicity of the library. But is there to grow the text box indefinitely? ie: have no maximumLines? I've tried setting it as 0 as it doesn't work.

@micnguyen
Copy link
Author

I've found out the workaround: The line

lines = (lines < self.minimumNumberOfLines ? self.minimumNumberOfLines :
         (lines > self.maximumNumberOfLines ? self.maximumNumberOfLines : lines));

can be:

lines = (lines < self.minimumNumberOfLines ? self.minimumNumberOfLines : lines);

Obviously it's pretty messy and messes up max lines. But it's there if anyone wants to make a pull request :)

EDIT: While I'm here and being a nuisance, perhaps extending the library to take in a custom font rather than system font would be good.

[UIFont systemFontOfSize:15];

Actually, I'll try doing a pull request. My first one ever :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant