diff --git a/core/mutator.js b/core/mutator.js index 5e942c2ab..b7968e850 100644 --- a/core/mutator.js +++ b/core/mutator.js @@ -275,7 +275,7 @@ Blockly.Mutator.prototype.setVisible = function(visible) { this.rootBlock_.setDeletable(false); if (this.workspace_.flyout_) { var margin = this.workspace_.flyout_.CORNER_RADIUS * 2; - var x = this.workspace_.getFlyout_().getWidth() + margin; + var x = this.workspace_.getFlyout().getWidth() + margin; } else { var margin = 16; var x = margin; @@ -394,10 +394,10 @@ Blockly.Mutator.prototype.workspaceChanged_ = function(e) { Blockly.Mutator.prototype.getFlyoutMetrics_ = function() { return { viewHeight: this.workspaceHeight_, - viewWidth: this.workspaceWidth_ - this.workspace_.getFlyout_().getWidth(), + viewWidth: this.workspaceWidth_ - this.workspace_.getFlyout().getWidth(), absoluteTop: 0, absoluteLeft: this.workspace_.RTL ? 0 : - this.workspace_.getFlyout_().getWidth() + this.workspace_.getFlyout().getWidth() }; };