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 bouncing #19

Open
joonorbertsv opened this issue Sep 24, 2014 · 4 comments
Open

Text bouncing #19

joonorbertsv opened this issue Sep 24, 2014 · 4 comments

Comments

@joonorbertsv
Copy link

I am using it to enter multiline text, but when I have only one line, adding a new letter or deleting one causes the text to bounce.
I am using V1.2.1.

Anyone else experiencing this?

@jonathanng
Copy link

+1

@joonorbertsv
Copy link
Author

So I am using a constraint for the height of the text view, and I am using [self.textView sizeThatFits:self.textView.frame.size] to find the necessary height.
It seems that somehow this is causing the bouncing, because the text would not fit in the visible rect.
As a workaround, I added some extra height for the textView (setting the height constraint to [self.textView sizeThatFits:self.textView.frame.size].height + 2.0f) and the bouncing went away.
I know, this is hacky, but couldn't come up with a better solution.

@crazyjooe
Copy link

This issue was fixed after pod version was locked, and it disappears, if referencing PSPDFTextView repository directly from Podfile:

pod 'PSPDFTextView', :git => 'https://github.com/steipete/PSPDFTextView.git'

It could be nice if pod version could be bumped.

@crazyjooe
Copy link

Another option is to use

pod 'PSPDFTextView', :head

to get latest pod and all latest changes

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

3 participants