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

Text scrolls out of visible rect #11

Open
armcknight opened this issue Feb 4, 2014 · 1 comment
Open

Text scrolls out of visible rect #11

armcknight opened this issue Feb 4, 2014 · 1 comment

Comments

@armcknight
Copy link

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.

@steipete
Copy link
Owner

steipete commented Feb 5, 2014

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.

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