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

set a default offset for block comments with no position data #10370

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Feb 5, 2025

fixes microsoft/pxt-arcade#6593

with the new blockly, the block comments i implemented now remember the position you leave them in. old projects, however, don't have any comment position data stored with them so they were just getting jostled around into random locations when being imported.

this pr sets an offset of 16 pixels for x/y to mimic the behavior of the old editor for old projects

@riknoll riknoll requested a review from a team February 5, 2025 18:02
@riknoll riknoll merged commit ebef160 into master Feb 5, 2025
7 checks passed
@riknoll riknoll deleted the dev/riknoll/fix-comment-default-position branch February 5, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lady Lovelace's Time Machine]: The comments are not in the correct position.
2 participants