diff --git a/ios/EnrichedTextInputView.mm b/ios/EnrichedTextInputView.mm index 21ff1b721..8795f0bbb 100644 --- a/ios/EnrichedTextInputView.mm +++ b/ios/EnrichedTextInputView.mm @@ -1743,7 +1743,6 @@ - (void)anyTextMayHaveBeenModified { [self tryUpdatingHeight]; // update active styles as well [self tryUpdatingActiveStyles]; - [self layoutAttachments]; // update drawing - schedule debounced relayout [self scheduleRelayoutIfNeeded]; } @@ -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]; }); }