Skip to content

fix(iOS): image y positioning#656

Open
kacperzolkiewski wants to merge 1 commit into
mainfrom
@kacperzolkiewski/fix-image-y-position
Open

fix(iOS): image y positioning#656
kacperzolkiewski wants to merge 1 commit into
mainfrom
@kacperzolkiewski/fix-image-y-position

Conversation

@kacperzolkiewski

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes image y positioning

Test Plan

  1. Insert Image into input
  2. Add remove text before/after the image
  3. Image should not jump

Screenshots / Videos

Before:

Screen.Recording.2026-06-22.at.12.10.44.mov

After:

Screen.Recording.2026-06-24.at.16.53.12.mov

Compatibility

OS Implemented
iOS
Android

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

Copilot AI review requested due to automatic review settings June 24, 2026 14:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an iOS-specific issue where inline attachment image overlays (e.g., inserted images/GIFs) could “jump” vertically when text is inserted/removed around them, by repositioning attachment views only after a forced full text layout pass has completed.

Changes:

  • Removed the immediate layoutAttachments call from anyTextMayHaveBeenModified.
  • Added layoutAttachments to run at the end of _performRelayout, after layout invalidation/ensure-layout and contentSize recomputation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants