Repository navigation
Report auto-resize changes when App portals open - #880
mangeshraut712 wants to merge 2 commits into
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Verified locally on commit Hosted CI remains with the maintainers for approval. OpenAI Codex ran the local verification and drafted this update. |
Mantine renders a popover as an absolute element inside a plain, zero-height div appended to the body. That element is neither a direct absolute child of the body nor part of the body's scroll overflow, so opening it sent no new height. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NMDiXp8DnMSF8zyzneEdj3
|
Follow-up in d37c853: the first version missed the repro in #686. A real Mantine 8 Chrome 153, with a host page that resizes the iframe to each reported height. Each cell lists the heights reported, in px:
The mutation observer adds no messages when the height is unchanged (the 234 is a line of text being added). The last row is the collapse #619 addresses; this PR leaves it as main has it. |
Fixes #686.
An absolutely positioned popover can increase scrollable content without resizing either box observed by App's auto-resize logic. Observe body subtree mutations and coalesce them with resize events on the same animation frame. Include body overflow, absolute children of the body, and absolute elements inside zero-height portal containers (as Mantine renders popovers) in the height calculation. Fixed overlays are not counted. Disconnect both observers and cancel any pending frame on cleanup.
Verification
87bcdc8c: a 100 px view stayed at 100 px after an absolutely positioned popover extended it to 330 px. Growing in-flow content to 180 px sent an update, confirming the observer was active.Popover(the library in autoResize misses absolutely-positioned portal growth (popover opens → no size-changed) #686), atd37c853, in Chrome 153 with a host that resizes the iframe to each reported height: the dropdown sits in a zero-height<div>on<body>and reaches 528 px. Main and0c1b8f1reported 202 px;d37c853reported 528 px and then 202 px when it closed. Direct and in-content popovers, a fixed overlay, shrinking content and 80 DOM mutations without a height change gave the same messages as0c1b8f1.bun test src: 360 passed, 0 failed. SDK build, Prettier,tsc --noEmit, and whitespace checks passed.Overlap with #619
#619 changes height measurement in the same function, including use of body scroll height, but keeps the existing resize observer trigger. The mutation observer addresses the separate notification gap. The measurement code should be reconciled if either PR lands first.
AI assistance disclosure: OpenAI Codex and Anthropic Claude assisted with investigation, implementation, the Chrome regressions, local verification, and drafting this PR.