mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Re-added resizeBubble_ call. Fixed resizeBubble_ JSDoc. (#3173)
This commit is contained in:
committed by
Sam El-Husseini
parent
0484b6623b
commit
51ff00b046
@@ -202,8 +202,7 @@ Blockly.Mutator.prototype.updateEditable = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* Callback function triggered when the bubble has resized.
|
||||
* Resize the workspace accordingly.
|
||||
* Resize the bubble to match the size of the workspace.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Mutator.prototype.resizeBubble_ = function() {
|
||||
@@ -294,6 +293,7 @@ Blockly.Mutator.prototype.setVisible = function(visible) {
|
||||
};
|
||||
this.block_.workspace.addChangeListener(this.sourceListener_);
|
||||
}
|
||||
this.resizeBubble_();
|
||||
// When the mutator's workspace changes, update the source block.
|
||||
this.workspace_.addChangeListener(this.workspaceChanged_.bind(this));
|
||||
this.updateColour();
|
||||
|
||||
Reference in New Issue
Block a user