Closed jboo1212 closed 6 years ago
Try to call textview.scrollRangeToVisible(NSMakeRange(-1, 0))
after height changing.
Wow this does the trick! Is location = -1 defined by the text?
The "-1" location seems not documented, but a little trick to scroll to bottom.
I have some sample code below where I try to mimic the dynamic text view calculation like your code. My question is how is the top inset addressed with respect to the text container? When I get to about the second line, my first line shifts up pretty much to very edge of the top frame of Text View. I want the text to stay center to the line height.