Re-added resizeBubble_ call. Fixed resizeBubble_ JSDoc. (#3173)

This commit is contained in:
Beka Westberg
2019-10-07 11:08:45 -07:00
committed by Sam El-Husseini
parent 2ac4149d98
commit a08d9f2277

View File

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