From c4f83137927a4852758fb538f8a4d66da63393cd Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Mon, 8 Apr 2019 14:14:56 -0700 Subject: [PATCH] Updates function call --- core/mutator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() }; };