Skip to content

Extra padding when moving blocks to the workspace #10025

@mikeharv

Description

@mikeharv

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

When blocks are moved to the workspace via constrained keyboard move mode, they are positioned above or below all other blocks. However, the way we calculate the bounds of "all other blocks" includes the dragging block. This means that the block's vertical offset can be larger than expected if it's prior position changes the overall contents metrics.

ImageImage

Reproduction steps

  1. Connect two blocks on the workspace such that the parent block's size, including children, is taller than the parent would be without children.
  2. Using constrained keyboard move mode, move the block down to the workspace.

Priority

No response

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

Type

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions