PSPDFTextView icon indicating copy to clipboard operation
PSPDFTextView copied to clipboard

Text bouncing

Open joonorbertsv opened this issue 10 years ago • 4 comments

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?

joonorbertsv avatar Sep 24 '14 14:09 joonorbertsv

+1

jonathanng avatar Oct 20 '14 00:10 jonathanng

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.

joonorbertsv avatar Oct 20 '14 06:10 joonorbertsv

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 avatar Dec 11 '14 10:12 crazyjooe

Another option is to use

pod 'PSPDFTextView', :head

to get latest pod and all latest changes

crazyjooe avatar Dec 11 '14 11:12 crazyjooe