From a08d9f22777ead11397d4f84e679e1d029a6ad07 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Mon, 7 Oct 2019 11:08:45 -0700 Subject: [PATCH] Re-added resizeBubble_ call. Fixed resizeBubble_ JSDoc. (#3173) --- core/mutator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mutator.js b/core/mutator.js index 72d8e77df..8b6bbd7d8 100644 --- a/core/mutator.js +++ b/core/mutator.js @@ -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();