hanspinckaers/GrowingTextView

[Bug] Wrong content size

Closed this issue · 5 comments

When paste big text, content don't scroll and has some ui bug.
hpgrowingtext

Sorry, you can reproduce this in ios 7.

#60 #63 had fix this bug.

Typing in a single character after the paste will correct the issue. (Not a fix but maybe it will provide a clue)

I have seen a similar issue on iOS7. The culprit is line #415:

internalTextViewFrame.size.width = internalTextView.contentSize.width;

which is different width than one set in layoutSubviews (line #133):

r.size.width = self.bounds.size.width - contentInset.left - contentInset.right;

Issue still exists. In iOS7 if I'm pasting text which more than the maximum height of the TextView, Its scrolling to last but one line. But it should scroll to last line.