| ... | ... | @@ -311,6 +311,12 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window) |
| 311 | 311 | _textView.editable = false; |
| 312 | 312 | _textView.textContainerInset = UIEdgeInsetsZero; |
| 313 | 313 | _textView.textContainer.lineFragmentPadding = 0; |
| 314 | // The shadow node already sized this view to fit every line. A container |
| 315 | // that tracks the frame can come out a fraction of a point shorter after |
| 316 | // pixel rounding, and TextKit then drops the last line. Size it by hand |
| 317 | // with unbounded height and let the view's bounds clip. |
| 318 | _textView.textContainer.widthTracksTextView = NO; |
| 319 | _textView.textContainer.heightTracksTextView = NO; |
| 314 | 320 | _textView.delegate = self; |
| 315 | 321 | // Chat text supports selection and contextual actions, but not drag-and-drop. |
| 316 | 322 | _textView.textDragInteraction.enabled = NO; |
| ... | ... | @@ -477,6 +483,7 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window) |
| 477 | 483 | } |
| 478 | 484 | if (frameChanged) { |
| 479 | 485 | _textView.frame = _view.frame; |
| 486 | _textView.textContainer.size = CGSizeMake(CGRectGetWidth(_view.frame), CGFLOAT_MAX); |
| 480 | 487 | } |
| 481 | 488 | |
| 482 | 489 | // Text attachments have no native link element. Expose their existing runs |