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

Not setting the display to none on duplicating. #2061

Merged
merged 2 commits into from
Jan 21, 2020

Conversation

aviral243
Copy link
Member

Context wheel remains open after pressing the duplicate button.
Fixes #1984

Context wheel does not dissapear after clicking duplicate once. It allows the user to make multiple copies effectively.
Fixes sugarlabs#1984
@aviral243
Copy link
Member Author

@walterbender Please review

js/block.js Outdated
@@ -5910,7 +5910,7 @@ function Block(protoblock, blocks, overrideName) {
that.blocks.activeBlock = thisBlock;
that.blocks.prepareStackForCopy();
that.blocks.pasteStack();
docById('contextWheelDiv').style.display = 'none';
docById('contextWheelDiv').style.display = '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The display style should already be '' at this point. No need to set it at all.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash commits together.

@walterbender
Copy link
Member

You patch works, but there is another problem. The repeated paste places the blocks on top of the previous pastes. We need to offset them.

@walterbender walterbender merged commit 0e678d8 into sugarlabs:master Jan 21, 2020
@walterbender
Copy link
Member

I added a fix to the offset problem to this patch.

7fe7bca

@aviral243 aviral243 deleted the contextWheel branch January 27, 2020 10:12
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.

Change "Copy" AND "Paste" to just "Duplicate"
2 participants