authorgravatar for mwolson@member.fsf.orgMike Olson <mwolson@member.fsf.org> 2026-10-04 17:09:59-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-04 18:09:59-03:00
log484459f0a9633e56214a7cd35b790c96f94190b4
treef4cf15e2292c73dad9cd5532379cc4bcd6cd48a7
parent4ee6bfd50ef4a089440d5c3662db2298da9cc50e
signature Signed by PGP key B5690EEEBB952194

fix(mobile): Keep the last line of iOS markdown replies visible (#15737)


1 files changed, 7 insertions(+), 0 deletions(-)

apps/mobile/modules/t3-markdown-text/ios/T3MarkdownText.mm+7
......@@ -311,6 +311,12 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window)
311311 _textView.editable = false;
312312 _textView.textContainerInset = UIEdgeInsetsZero;
313313 _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;
314320 _textView.delegate = self;
315321 // Chat text supports selection and contextual actions, but not drag-and-drop.
316322 _textView.textDragInteraction.enabled = NO;
......@@ -477,6 +483,7 @@ T3MarkdownOutsideTapCoordinatorForWindow(UIWindow *window)
477483 }
478484 if (frameChanged) {
479485 _textView.frame = _view.frame;
486 _textView.textContainer.size = CGSizeMake(CGRectGetWidth(_view.frame), CGFLOAT_MAX);
480487 }
481488
482489 // Text attachments have no native link element. Expose their existing runs