Skip to content

fix: preserve CarPlay physical size across browser viewport changes - #36

Merged
fython merged 1 commit into
fython:mainfrom
TioaChan:codex/fix-carplay-browser-physical-size
Oct 23, 2026
Merged

fython merged 1 commit into
fython:mainfrom
TioaChan:codex/fix-carplay-browser-physical-size

Conversation

@TioaChan

Copy link
Copy Markdown
Contributor

A smaller browser viewport could make CarPlay icons and text grow because the host reported its physical size as a fraction of the largest viewport previously observed. For example, Medium's 300 mm width became 150 mm when a canvas changed from 3840 to 1920 pixels wide.

Use the current browser canvas as the physical-size reference, keeping the configured reference length stable while deriving the other dimension from the current aspect ratio. The shared resolver continues to handle both width and height references.

Add four regressions against the actual host calculation: a smaller canvas after a 4K viewport, repeated resizing and lower pixel resolution, each size preset, and a saved height reference. All four fail with the original calculation and pass with this change.

Validation:

  • 14 related Android unit tests passed on the latest upstream main baseline.
  • The local release validation passed 139 browser tests and JavaScript syntax checking.
  • Signed arm64 release built successfully; Release Lint has 0 errors and 4 existing warnings. Signing and 16 KiB ZIP alignment checks passed.
  • End-to-end CarPlay visual confirmation remains pending.

Fixes #35

A smaller browser canvas was reported as a fraction of the largest
viewport ever observed. With Medium and a saved 3840-pixel maximum,
1184x920 was announced as 93x72 mm, making iOS controls oversized.

Use the current canvas as the physical reference so the selected length
remains stable across browser resizing and pixel-resolution changes.
Keep the shared resolver's existing width/height reference handling.

Add host regressions for the reported dimensions, repeated resizing,
all size presets, and a saved height reference. All four fail against
the original code and pass with the fix.
@TioaChan

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T05:58:08.780646Z 72dac2b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 72dac2bd36

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@fython
fython merged commit d26fe24 into fython:main Oct 23, 2026
3 checks passed
@fython

fython commented Oct 23, 2026

Copy link
Copy Markdown
Owner

@TioaChan Thanks!

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.

CarPlay control size changes with browser viewport history

2 participants