FluidGroup / NextGrowingTextView

📝 The next in the generations of 'growing textviews' optimized for iOS 8 and above.
MIT License
1.8k stars 149 forks source link

Set _textView.textContainerInset makes wrong size #53

Open wjling opened 7 years ago

wjling commented 7 years ago

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 commented 7 years ago

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

wjling commented 7 years ago

@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