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

Set _textView.textContainerInset makes wrong size #53

Open
wjling opened this issue May 25, 2017 · 2 comments
Open

Set _textView.textContainerInset makes wrong size #53

wjling opened this issue May 25, 2017 · 2 comments

Comments

@wjling
Copy link

wjling commented May 25, 2017

All use autolayout. If I set _textView.textContainerInset = UIEdgeInsets.init(top: 0, left: 10, bottom: 0, right: 10) and _textView.font = UIFont.systemFont(ofSize: 14), the NextGrowingInternalTextView.height is 17 and NextGrowingTextView.height is 35.3333. The _minHeight is computed to 35.333 and should it be 17?

@Voidozzer
Copy link

@wjling same problem here. Did you find any solution for that?

@wjling
Copy link
Author

wjling commented Jun 1, 2017

@Voidozzer I can't find a good solution. I just quit the textContainerInset and use a background view to make the insets, and make the textView in center of the background view

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

2 participants