Skip to content

feat: size windows from reported content size (#18) - #22

Open
moonolgerd wants to merge 1 commit into
mainfrom
issue-18-content-sizing
Open

moonolgerd wants to merge 1 commit into
mainfrom
issue-18-content-sizing

Conversation

@moonolgerd

Copy link
Copy Markdown
Owner

Summary

  • window.setContentSize lets a page opt in to content-driven sizing. The host converts DPI, adds the caption strip, and clamps the result to the monitor work area and the window min and max.
  • The FDC3 probe is the only page that calls it. Child windows (issue Child windows #19) are not wired on this branch.

Test plan

  • Build succeeded
  • ContentWindowFitTests and IpcDispatchTests (24 passed)
  • tsc succeeded
  • Playwright e2e was not run because port 9222 was busy

Closes #18

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 03:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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.

Content-driven window sizing

2 participants