diff options
| author | jmoenig <jens@moenig.org> | 2014-09-30 10:45:21 +0200 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-09-30 10:45:21 +0200 |
| commit | ebbd0be87ac9d8b2ac80857089350cfdd11f27b4 (patch) | |
| tree | 9aef3d54af7b3ad61447f88b60f8782119b263f7 | |
| parent | 71c9103503691285191e024c8ae30200240d54cc (diff) | |
| download | snap-yow-ebbd0be87ac9d8b2ac80857089350cfdd11f27b4.tar.gz snap-yow-ebbd0be87ac9d8b2ac80857089350cfdd11f27b4.zip | |
fixed #584
| -rw-r--r-- | blocks.js | 11 | ||||
| -rwxr-xr-x | history.txt | 1 |
2 files changed, 10 insertions, 2 deletions
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-September-22'; +modules.blocks = '2014-September-30'; var SyntaxElementMorph; @@ -2148,9 +2148,16 @@ BlockMorph.prototype.userMenu = function () { this.thumbnail(0.5, 60, false), function () { var cpy = this.fullCopy(), - nb = cpy.nextBlock(); + nb = cpy.nextBlock(), + ide = myself.parentThatIsA(IDE_Morph); if (nb) {nb.destroy(); } cpy.pickUp(world); + if (ide) { + world.hand.grabOrigin = { + origin: ide.palette, + position: ide.palette.center() + }; + } }, 'only duplicate this block' ); diff --git a/history.txt b/history.txt index 2b0f73f..a4ba13c 100755 --- a/history.txt +++ b/history.txt @@ -2289,4 +2289,5 @@ ______ * BYOB: allow percent symbols in custom block texts (fix #361), thanks, @Gubolin!! * Morphic: allow negative min/max values for sliders (fix #285), thanks, @Gubolin!! * Objects: fixed #378 (disable context menus for boolean representations) +* Blocks: fixed #584 |
