From ebbd0be87ac9d8b2ac80857089350cfdd11f27b4 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 30 Sep 2014 10:45:21 +0200 Subject: fixed #584 --- blocks.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'blocks.js') diff --git a/blocks.js b/blocks.js index 58cab68..0c265fc 100644 --- a/blocks.js +++ b/blocks.js @@ -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' ); -- cgit v1.3.1