mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user