Repository navigation
Conversation
[Medium impact] The changes affect prototype playback, authoring, and agent reports. Fix placement after scrolling inside an iframe before merging. Findings
SummaryAdds custom overlay coordinates to the inspector, HTML attributes, player, and agent reports.
Reviews (1) · Last reviewed commit: "fix(prototype): support precise overlay ..." · Reviewed by Greptile |
This branch has not been deployed
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.
What changed
Authors can place a dropdown beneath its button using Open overlay → Position → Custom. X and Y specify the menu’s top-left corner in the opening frame’s unscrolled document. Existing overlays default to Center.
The player previously placed menus against the outside of the opening iframe. Scrolling inside the iframe moved the button but left that reference point in place. The frame now reports the triggering element’s position when the menu opens and as the button moves. Each nested dropdown tracks its own button. The player applies the frame’s scale and keeps the menu inside the stage.
The inspector and HTML use the same coordinates. Dragging a coordinate saves once on release, supports undo, and preserves a collaborator’s intervening edit. The agent guide documents both HTML forms, and
get_prototypereports malformed coordinate pairs.Before and after
Scrolling. Both captures show the same File menu after a 140 px scroll inside the opening frame. The gap between the button and the menu fell from 140 px to 0 px.
Custom placement. The same menu opens in the center with the default setting and beneath File with Custom set to X 28, Y 60.
Verification
959aeb13. The production build, typecheck, lint and PR-title checks also passed. CI runOpen in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.