From f64f6f7d6f6065e7e271bbf77ec070d1e04a7af2 Mon Sep 17 00:00:00 2001 From: picklesrus Date: Fri, 10 Jun 2016 13:46:44 -0700 Subject: [PATCH] Trigger a contents resize in block's moveBy. (#422) This fixes #420 but and it also fixes some other similar problems with copy/paste and other users of moveBy. --- core/block_svg.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/block_svg.js b/core/block_svg.js index c84220606..094373973 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -343,6 +343,7 @@ Blockly.BlockSvg.prototype.moveBy = function(dx, dy) { 'translate(' + (xy.x + dx) + ',' + (xy.y + dy) + ')'); this.moveConnections_(dx, dy); event.recordNew(); + Blockly.resizeSvgContents(this.workspace); Blockly.Events.fire(event); };