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.
This commit is contained in:
picklesrus
2016-06-10 13:46:44 -07:00
committed by Neil Fraser
parent 0c92ce911f
commit f64f6f7d6f

View File

@@ -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);
};