mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Bump unconnected blocks after mutator change.
This commit is contained in:
@@ -34,7 +34,6 @@ goog.require('Blockly.Mutator');
|
||||
goog.require('Blockly.Warning');
|
||||
goog.require('Blockly.Workspace');
|
||||
goog.require('Blockly.Xml');
|
||||
goog.require('goog.Timer');
|
||||
goog.require('goog.array');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.math.Coordinate');
|
||||
|
||||
@@ -31,6 +31,7 @@ goog.require('Blockly.ContextMenu');
|
||||
goog.require('goog.asserts');
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.math.Coordinate');
|
||||
goog.require('goog.Timer');
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,6 +31,7 @@ goog.require('Blockly.Bubble');
|
||||
goog.require('Blockly.Icon');
|
||||
goog.require('Blockly.WorkspaceSvg');
|
||||
goog.require('goog.dom');
|
||||
goog.require('goog.Timer');
|
||||
|
||||
|
||||
/**
|
||||
@@ -285,6 +286,8 @@ Blockly.Mutator.prototype.workspaceChanged_ = function() {
|
||||
this.resizeBubble_();
|
||||
// The source block may have changed, notify its workspace.
|
||||
this.block_.workspace.fireChangeEvent();
|
||||
goog.Timer.callOnce(
|
||||
this.block_.bumpNeighbours_, Blockly.BUMP_DELAY, this.block_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user