Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Take the flyout into account when positioning the workspace after a toolbox change. #8617

Open
wants to merge 2 commits into
base: rc/v12.0.0
Choose a base branch
from

Conversation

gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Oct 9, 2024

The basics

The details

Resolves

Fixes gonfunko/scratch-blocks#199 and gonfunko/scratch-blocks#187

Proposed Changes

This PR updates the code that handles repositioning the workspace in response to a toolbox item size change. It seems to have been written taking into account the normal auto-closing flyouts, but in Scratch, where the flyout is visible by default, the workspace was positioned as if the flyout wasn't present. This caused the first block dropped on the workspace to shift by the width of the flyout, and also caused blocks to be mispositioned when restoring the state of the workspace.

@gonfunko gonfunko requested a review from a team as a code owner October 9, 2024 20:23
@gonfunko gonfunko requested a review from cpcallen October 9, 2024 20:23
@gonfunko gonfunko changed the title Toolbox resizing fix: Take the flyout into account when positioning the workspace after a toolbox change Oct 9, 2024
@gonfunko gonfunko changed the title fix: Take the flyout into account when positioning the workspace after a toolbox change fix: Take the flyout into account when positioning the workspace after a toolbox change. Oct 9, 2024
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Oct 9, 2024
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.

2 participants