Skip to content

Fix pop-out window scroll starting at top#7

Merged
tsconfigdotjson merged 1 commit intomainfrom
raw-meadow-sparkle
Apr 10, 2026
Merged

Fix pop-out window scroll starting at top#7
tsconfigdotjson merged 1 commit intomainfrom
raw-meadow-sparkle

Conversation

@tsconfigdotjson
Copy link
Copy Markdown
Owner

Summary

  • Fix pop-out windows opening scrolled to the top instead of the bottom
  • On first render, defer scrollToEndOfDocument until after layout and force layoutSubtreeIfNeeded() so the scroll view has real geometry

Test plan

  • Open a pop-out window for a process with existing output — should start at bottom
  • Verify smart auto-scroll still works (scroll up stays put, scroll to bottom resumes following)

🤖 Generated with Claude Code

On first render, the NSScrollView has zero-sized geometry so
scrollToEndOfDocument had no effect. Defer the initial scroll to the
next run-loop pass and force layout before scrolling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tsconfigdotjson tsconfigdotjson merged commit cc0aac6 into main Apr 10, 2026
1 check passed
@tsconfigdotjson tsconfigdotjson deleted the raw-meadow-sparkle branch April 10, 2026 03:38
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