PSPDFTextView icon indicating copy to clipboard operation
PSPDFTextView copied to clipboard

Text scrolls out of visible rect

Open armcknight opened this issue 11 years ago • 1 comments

First and foremost, thanks for making this library available, it fixes something I'd been working on for a while. Unfortunately, an issue I discovered actually has higher impact than the issue PSPDFTextView solved for me.

I have a textView with autolayout constraints, one of which being it's height, whose constant I modify so it will grow with user input to accommodate several lines of visible text before it starts scrolling. It worked almost perfectly with a UITextView except when newlines were entered. Now, whenever the text wraps to the next line, all the text is scrolled out of the visible CGRect. Perhaps modifying the autolayout height constant is throwing things off, I'm not sure, but other than that I don't manually scrollToRect or anything like that. I uploaded a video comparison so you can kind of watch it in action: http://www.youtube.com/watch?v=wv71vjhda2A&feature=youtu.be. The left shows a PSPDFTextView and the right a UITextView with the same use case applied.

armcknight avatar Feb 04 '14 22:02 armcknight

Hmmm. I don't have such an use case, but feel free to dig deeper. Try disabling any animation parameters and see if this helps.

steipete avatar Feb 05 '14 10:02 steipete