Skip to content

feat: implement FitAddon with resize fixes#10

Merged
sreya merged 1 commit intomainfrom
task7
Nov 11, 2025
Merged

feat: implement FitAddon with resize fixes#10
sreya merged 1 commit intomainfrom
task7

Conversation

@sreya
Copy link
Copy Markdown
Contributor

@sreya sreya commented Nov 11, 2025

  • Add FitAddon class with fit(), proposeDimensions(), and observeResize()
  • Implement dimension tracking to prevent resize loops
  • Add re-entrancy guard to block concurrent resize operations
  • Use stable clientWidth/clientHeight measurements
  • Add 10 comprehensive tests (all passing)
  • Export FitAddon from main index
  • Integrate into terminal-demo.html with proper CSS
  • Fix container CSS for stable dimensions (height, overflow: hidden)

Fixes:

  • Infinite resize loop from ResizeObserver feedback
  • Terminal growing wider on each fit() call
  • Unstable dimension measurements

Task 7 complete - FitAddon is production-ready

- Add FitAddon class with fit(), proposeDimensions(), and observeResize()
- Implement dimension tracking to prevent resize loops
- Add re-entrancy guard to block concurrent resize operations
- Use stable clientWidth/clientHeight measurements
- Add 10 comprehensive tests (all passing)
- Export FitAddon from main index
- Integrate into terminal-demo.html with proper CSS
- Fix container CSS for stable dimensions (height, overflow: hidden)

Fixes:
- Infinite resize loop from ResizeObserver feedback
- Terminal growing wider on each fit() call
- Unstable dimension measurements

Task 7 complete - FitAddon is production-ready
@sreya sreya merged commit 1619b9b into main Nov 11, 2025
@sreya sreya deleted the task7 branch November 11, 2025 01:02
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