From 895ab6ddeb93938a75e779d9b3c0344330472933 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 2 Apr 2013 18:18:19 +0200 Subject: Anchored Comments Enhancements * the Block Editor now allows anchored comments, * duplicating a block / script / sprite now also duplicates anchored comments, * deleting a block / script now also deletes anchored comments --- gui.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 5642bde..d051dc1 100644 --- a/gui.js +++ b/gui.js @@ -4418,6 +4418,9 @@ SpriteIconMorph.prototype.copyStack = function (block) { dup.setPosition(new Point(this.object.scripts.left() + 20, y + 20)); this.object.scripts.add(dup); + dup.allComments().forEach(function (comment) { + comment.align(dup); + }); this.object.scripts.adjustBounds(); // delete all custom blocks pointing to local definitions -- cgit v1.3.1