slackhq / SlackTextViewController

⛔️**DEPRECATED** ⛔️ A drop-in UIViewController subclass with a growing text input view and other useful messaging features
https://slack.com/
MIT License
8.32k stars 1.08k forks source link

Insert Text API should always auto scroll to just inserted text #453

Open hipwelljo opened 8 years ago

hipwelljo commented 8 years ago

If you call [self.textView slk_insertTextAtCaretRange:myText]; while the caret position is at the end, there is already sufficient number of lines in the textView to exceed the max limit, it is pushed to a new line, and the textView is the first responder, it will auto scroll to the bottom to show the text that was just inserted as you would expect. But if the textView is not the first responder, it will still insert at the end, but it won't auto scroll the textView so you can't see the text you just inserted. It should always auto scroll to show the just inserted text. :)

dzenbot commented 8 years ago

Agree. Will look at it. Thanks.

Preen commented 7 years ago

Any news on this? =)