Repository navigation
fix(shell): let RenderedFrame fill its container in the side canvas - #257
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a fillContainer input property to the RenderedFrame component, allowing it to size itself to its parent container rather than dynamically resizing based on the guest's reported surface height. This prevents unnecessary resizing feedback loops and disables the growth circuit breaker for container-filling frames. The changes include updates to the component's HTML, SCSS, test harnesses, and unit tests. There are no review comments to address, and I have no additional feedback to provide.
Contributor
⚡ A2UI Composer PR PreviewYour automated preview is successfully live (commit
|
The side canvas renders `RenderedFrame` with `height: 100%` so it fills the panel, but the frame container binds its height to the guest's `SURFACE_RESIZE` reports, which overrides that as soon as the first report arrives. The side canvas therefore sizes to content like an inline chat bubble: a short surface leaves the rest of the panel empty, a tall one grows the panel's scroll area, and a surface laid out against its own viewport (`100%` or `100vh`, which is how a production Canvas fills its side panel) measures the 280px placeholder and stays there, or feeds its own height back into the frame. This adds a `fillContainer` input to `RenderedFrame`. When set, reported heights are not applied, the container and iframe take exactly the host's height (no inline minimums) and the guest document scrolls inside the frame, which matches the fixed-height canvas panels of production hosts. The growth circuit breaker is skipped in that mode: since the frame no longer follows the reports, there is no loop to guard. The side canvas sets the input; inline bubbles and the gallery keep sizing to content.
…ing it The container already has height: 100%, so min-height: 0 says what the override is for (lifting the 280px inline minimum) and matches the iframe rule beneath it.
mikzat
force-pushed
the
fix/side-canvas-fill-container
branch
from
October 8, 2026 17:22
05daef5 to
c93c867
Compare
mikzat
marked this pull request as ready for review
October 8, 2026 17:31
jgindin
approved these changes
Oct 8, 2026
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The side canvas renders
RenderedFramewithheight: 100%so it fills the panel, but the frame container binds its height to the guest'sSURFACE_RESIZEreports, which overrides that as soon as the first report arrives. The side canvas therefore sizes to content like an inline chat bubble: a short surface leaves the rest of the panel empty, a tall one grows the panel's scroll area, and a surface laid out against its own viewport (100%or100vh, which is how a production Canvas fills its side panel) measures the 280px placeholder and stays there, or feeds its own height back into the frame.This adds a
fillContainerinput toRenderedFrame. When set, reported heights are not applied, the container and iframe take exactly the host's height (the 280px inline minimums are lifted) and the guest document scrolls inside the frame, which matches the fixed-height canvas panels of production hosts. The growth circuit breaker is skipped in that mode: since the frame no longer follows the reports, there is no loop to guard. The side canvas sets the input; inline bubbles and the gallery keep sizing to content.Verification
rendered-frame.spec.ts: a frame that fills its container stays at100%while reports arrive, follows reports again once it stops filling, and the growth breaker does not engage in that mode.a2a-chat-view.spec.ts: the side canvas frame renders withfillContainerset and the inline frames without it.prettier --check,eslint, andtsc -p tsconfig.json --noEmitclean inshell/.Note: #258 also touches
rendered-frame.tsand its spec. The production code merges cleanly; the specs append in the same region, so whichever lands second takes a trivial rebase.