From 06511b6642c32073ba891786a23a85b3d4b4aab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=BB=C3=B3=C5=82kiewski?= Date: Wed, 24 Jun 2026 16:50:17 +0200 Subject: [PATCH] fix(ios): image y positioning --- ios/EnrichedTextInputView.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; }); }