Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ios/EnrichedTextInputView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,6 @@ - (void)anyTextMayHaveBeenModified {
[self tryUpdatingHeight];
// update active styles as well
[self tryUpdatingActiveStyles];
[self layoutAttachments];
// update drawing - schedule debounced relayout
[self scheduleRelayoutIfNeeded];
}
Expand Down Expand Up @@ -1783,6 +1782,9 @@ - (void)_performRelayout {
// measureSize may not be up-to date at that point
CGSize measuredSize = [self measureSize:self->textView.frame.size.width];
self->textView.contentSize = measuredSize;

// Re-position attachment image views after the forced full re-layout
[self layoutAttachments];
});
}

Expand Down
Loading