diff --git a/core/flyout_horizontal.js b/core/flyout_horizontal.js index 7faa53d27..68184a883 100644 --- a/core/flyout_horizontal.js +++ b/core/flyout_horizontal.js @@ -376,7 +376,7 @@ Blockly.HorizontalFlyout.prototype.reflowInternal_ = function() { // is in the correct position relative to the new absolute edge (ie // toolbox edge). this.targetWorkspace.translate( - 0, this.targetWorkspace.scrollY + flyoutHeight); + this.targetWorkspace.scrollX, this.targetWorkspace.scrollY + flyoutHeight); } // Record the height for .getMetrics_ and .position. diff --git a/core/flyout_vertical.js b/core/flyout_vertical.js index 3acb4f639..05687154c 100644 --- a/core/flyout_vertical.js +++ b/core/flyout_vertical.js @@ -385,7 +385,7 @@ Blockly.VerticalFlyout.prototype.reflowInternal_ = function() { // is in the correct position relative to the new absolute edge (ie // toolbox edge). this.targetWorkspace.translate( - this.targetWorkspace.scrollX + flyoutWidth, 0); + this.targetWorkspace.scrollX + flyoutWidth, this.targetWorkspace.scrollY); } // Record the width for .getMetrics_ and .position.