scratchfoundation / scratchfoundation/scratch-blocks
RTL placement of custom procedure definitions onto workspace
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Expected Behavior
Custom procedure blocks in RTL should be placed similarly to blocks in LTR except in the top-right corner of the visible workspace instead of the top-left corner.
Actual Behavior
#1677 helps with this issue a bit as the first block (without scrolling the workspace) gets placed in the top-right corner of the workspace, but subsequent custom procedure blocks are placed far away off screen (possibly around/more than the width of the visible workspace view).
Steps to Reproduce
Add a custom procedure block to a sprite's workspace when in RTL mode.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in an RTL sprite workspace, then trace the placement logic for custom procedure blocks and compare it with LTR behavior. Verify that the first and subsequent procedure blocks appear within the visible workspace near the top-right without requiring unexpected scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100