Skip to content

Recenter issue with a horizontal toolbox #2036

@AnmAtAnm

Description

@AnmAtAnm

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions