Skip to content

Incorrect position for pasted blocks on RTL workspaces #9138

@mikeharv

Description

@mikeharv

Check for duplicates

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

Description

With Blockly v12, there is a regression that causes the horizontal position of pasted/duplicated blocks to be inverted.

Reproduction steps

  1. Load any RTL workspace, such as https://blockly-demo.appspot.com/static/tests/playground.html?dir=rtl&toolbox=categories
  2. Place a block on the left or right side of the workspace, avoiding the middle.
  3. Copy and paste (or duplicate) the block.

Stack trace

Screenshots

LTR (Working as expected)

Image
Image

RTL (Unexpected placement)

Image
Image

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugDescribes why the code or behaviour is wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions