8000 fix(prototype): support precise overlay placement by mmaazrana · Pull Request #700 · doop-design/doop · GitHub
[go: up one dir, main page]

Skip to content

fix(prototype): support precise overlay placement - #700

Open
mmaazrana wants to merge 2 commits into
doop-design:mainfrom
mmaazrana:fix/prototype-overlay-placement
Open

mmaazrana wants to merge 2 commits into
doop-design:mainfrom
mmaazrana:fix/prototype-overlay-placement

Conversation

@mmaazrana
@mmaazrana mmaazrana commented Nov 29, 2026 •
Copy link
Copy Markdown
Contributor

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_prototype reports 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.

File menu after scrolling, with a 140 px gap before the fix and flush beneath the button afterward

Custom placement. The same menu opens in the center with the default setting and beneath File with Custom set to X 28, Y 60.

Original centered menu and the custom placement beneath File

Verification

  • GitHub CI passed all four Linux shards with 4,732 tests passed and 2 skipped on commit 959aeb13. The production build, typecheck, lint and PR-title checks also passed. CI run
  • All 77 local tests passed across five suites covering the player, inspector, MCP, interaction parsing and translations. The new Chromium tests cover scrolling before and after opening, independently scrolled submenus at half scale, fixed and sticky headers, overflow panels, smooth scrolling, transforms and changes to the opening frame.
  • The production build, TypeScript, lint, formatting and documentation checks passed.
  • Claude Desktop (Opus 5.5, High effort) reviewed the scrolling fix and its regressions and approved the final source.

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@greptile-apps
greptile-apps Bot commented Nov 29, 2026 •
Copy link
Copy Markdown

Confidence Score: 4/5 · Fix placement after scrolling inside an iframe before merging.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect prototype playback, authoring, and agent reports.

Fix placement after scrolling inside an iframe before merging.

Findings

  1. P1 Menus miss scrolled buttons ▶

Summary

Adds custom overlay coordinates to the inspector, HTML attributes, player, and agent reports.

  • Custom overlays open at coordinates measured from the frame that opened them.
  • The interaction inspector lets authors set overlay coordinates and save a drag as one edit.
  • HTML and prototype reports carry the same overlay coordinate pair.

Reviews (1) · Last reviewed commit: "fix(prototype): support precise overlay ..." · Reviewed by Greptile

Comment thread src/components/PrototypePlayer.tsx Resolved

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.

1 participant

0