Skip to content

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #9246

Proposed Changes

This PR updates the FocusManager to not automatically scroll focused nodes into view (the default browser behavior). This was causing shifts in the top-level page when the WidgetDiv was shown, and may have caused inadvertent scrolling in other contexts as well.

@gonfunko gonfunko requested a review from BenHenning August 12, 2025 16:49
@gonfunko gonfunko requested a review from a team as a code owner August 12, 2025 16:49
@github-actions github-actions bot added the PR: fix Fixes a bug label Aug 12, 2025
Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @gonfunko! This makes sense. I had a couple of thoughts--PTAL.

Copy link
Collaborator

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @gonfunko! Approving to unblock, though I did leave one comment just to double check that the test fails as expected.

@BenHenning BenHenning assigned gonfunko and unassigned BenHenning Aug 14, 2025
@gonfunko gonfunko merged commit c6730ab into develop Aug 21, 2025
13 checks passed
@gonfunko gonfunko deleted the widgetdiv branch August 21, 2025 18:15
gonfunko added a commit that referenced this pull request Aug 28, 2025
…as shown. (#9291)

* fix: Fix bug that caused inadvertent scrolling when the `WidgetDiv` was shown.

* chore: Add test to verify that displaying the context menu does not scroll the page.

* chore: Clarify comments.

* fix: Remove errant `.only`.

* chore: Add test to verify that actively focusing a node does not scroll the page.

* fix: Remove inadvertent `.only`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Input fields and context menus may scroll workspace out of view

4 participants