NextGrowingTextView icon indicating copy to clipboard operation
NextGrowingTextView copied to clipboard

Set _textView.textContainerInset makes wrong size

Open wjling opened this issue 8 years ago • 2 comments

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?

wjling avatar May 25 '17 04:05 wjling

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

Voidozzer avatar May 27 '17 14:05 Voidozzer

@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

wjling avatar Jun 01 '17 07:06 wjling