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

Recenter issue with a horizontal toolbox #2036

Closed
AnmAtAnm opened this issue Aug 30, 2018 · 1 comment
Closed

Recenter issue with a horizontal toolbox #2036

AnmAtAnm opened this issue Aug 30, 2018 · 1 comment

Comments

@AnmAtAnm
Copy link
Contributor

Problem statement

If a toolbox has a horizontal toolbox, recentered blocks will be far right of the workspace center, possibly outside the normal draggable bounds.

Expected Behavior

After pressing the recenter button, blocks should be centered in the workspace. It the blocks fit, they in the visible space, they should not bleed off the workspace edge.

Actual Behavior

Steps to Reproduce

  1. Start by opening tests/multi_playground.html.
  2. In any horizontal toolbox workspace (bottom four on page), add blocks from the toolbox.
  3. Hit the recenter button.

Notice how the blocks are not centered, shifted to the right.

screen shot 2018-08-30 at 11 30 58 am

screen shot 2018-08-30 at 11 28 46 am

Perhaps the toolbox length is being included in the horizontal workspace width?

@alschmiedt
Copy link
Contributor

Closing as I can no longer repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants