Skip to content

Keep the iOS transcript still when focusing the composer below a short reply - #1463

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/tiramisu-runway-focus
Nov 23, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/tiramisu-runway-focus

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

When the last reply was short, so the runway filled the rest of the screen, focusing the composer on iOS threw the transcript up by about the keyboard's height and then slid it back down.

Cause

The keyboard shrinks the transcript. pinBottomThroughResize re-pinned to the bottom while the runway spacer was still sized for the full-height screen. The runway only shrank on the next layout pass, which pulled the text back down. This predates the quote changes: it reproduces on the commit before them.

Fix

pinBottomThroughResize now calls fitRunwayToViewport() before pinning. It refits the runway to the new viewport height and updates the content size, so the pin lands where the reply already sits. The document-size update moves into applyDocumentSize(), shared with rebuildDocumentGeometry.

Verified (iOS simulator, 30 fps recordings)

  • Focus below a short reply: the transcript stays still in every frame. Before the fix it jumped up and slid back.
  • Focus with a long reply at the bottom: it still moves up with the keyboard, with no overshoot.
  • Focus while scrolled up: unchanged.
  • Not verified: dismissing the keyboard at the runway. My dismiss swipes also scrolled the transcript, which goes through the keep-offset path this change doesn't touch.

There's no unit test: the iOS app transcript has no test target, and the jump only shows in live layout.

🤖 Generated with Claude Code

…t reply

When the last reply was short and the runway filled the rest of the
screen, focusing the composer threw the transcript up by about the
keyboard's height and then slid it back down. The keyboard shrinks the
transcript, and it re-pinned to the bottom while the runway was still
sized for the full-height screen; the runway only shrank on the next
layout pass, pulling the text back down. The runway is now fitted to
the new height before the transcript re-pins, so the reply stays where
it is. Long replies with no runway still move up with the keyboard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dylanplayer
dylanplayer merged commit 9258708 into main Nov 23, 2026
@dylanplayer
dylanplayer deleted the codevisor/tiramisu-runway-focus branch November 23, 2026 21:09
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.

1 participant