Skip to content

Fix anchored popover resize positioning / 修复弹层尺寸变化后的定位#3894

Merged
SivanCola merged 1 commit into
esengine:main-v2from
SivanCola:fix/anchored-popover-resize-position
Jun 11, 2026
Merged

Fix anchored popover resize positioning / 修复弹层尺寸变化后的定位#3894
SivanCola merged 1 commit into
esengine:main-v2from
SivanCola:fix/anchored-popover-resize-position

Conversation

@SivanCola

Copy link
Copy Markdown
Collaborator

Summary

  • Reposition anchored popovers when the anchor or menu size changes, using a ResizeObserver with requestAnimationFrame batching.
  • Keeps model, effort, composer, settings, and workspace popovers anchored after async content loads or layout changes.

Verification

  • npm --prefix desktop/frontend run test
  • npm --prefix desktop/frontend run build
  • Checked the model switcher and adjacent popovers in the Codex in-app browser on a local dev server; no console warnings or errors.

Cache impact

  • No provider request, prompt, tool schema, or cache-prefix changes.

@SivanCola SivanCola requested a review from esengine as a code owner June 10, 2026 19:55
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) labels Jun 10, 2026
@SivanCola SivanCola enabled auto-merge June 10, 2026 19:57

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean fix. Reattaching position on a ResizeObserver for both anchor and menu is the right call for async-loaded popover content, and the rAF de-bounce plus the samePosition short-circuit keep it from looping on its own repositioning. Feature-detected too. Thanks!

@SivanCola SivanCola merged commit c9198c3 into esengine:main-v2 Jun 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants