Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Cut/Paste affecting UIBarButtonItem #14

Closed
mofolo opened this issue Apr 11, 2012 · 3 comments
Closed

Cut/Paste affecting UIBarButtonItem #14

mofolo opened this issue Apr 11, 2012 · 3 comments

Comments

@mofolo
Copy link

mofolo commented Apr 11, 2012

There seems to be a problem when you cut all text from the GrowingTextView or paste large amounts of text into an empty GrowingTextView. The images can explain it a little better:

When Pasting into empty TextView
Pasting Image
As you can see, the UIBarButtonItem gets affected in a weird way.

When Cutting or Clearing the field to empty
Cutting
Same deal here, the UIBarButtonItem gets pushed below the Toolbar's view.

**When you enter text normally, paste into a non empty textView, or if not all characters are cut/cleared
How it should be

@hanspinckaers
Copy link
Owner

Thanks, this means that the delegate method for height changed doesn't get called when using cut/copy/paste.

I don't have much time, maybe you can find a solution? Just listen to cut/copy/paste actions and call the delegate.

Hans

On Thursday 12 April 2012 at 01:04, mofolo wrote:

There seems to be a problem when you cut all text from the GrowingTextView or paste large amounts of text into an empty GrowingTextView. The images can explain it a little better:

When Pasting into empty TextView
Pasting Image
As you can see, the UIBarButtonItem gets affected in a weird way.

When Cutting or Clearing the field to empty
Cutting
Same deal here, the UIBarButtonItem gets pushed below the Toolbar's view.

**When you enter text normally, paste into a non empty textView, or if not all characters are cut/cleared
How it should be


Reply to this email directly or view it on GitHub:
#14

@mofolo
Copy link
Author

mofolo commented Apr 15, 2012

I though the same too, but really, the delegate is returning the correct height when copying and pasting.

I ended up making my own UIButton and Putting it into the Toolbar, that solved the problem for me, but it still doesn't work with UIBarButtons.

@hanspinckaers
Copy link
Owner

It's weird, but not a bug of GrowingTextView, so I'm closing this issue. Thanks for your report.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants