From c96330c207e51dc592e3f071ebc734718d8f01cc Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Sat, 9 Feb 2019 15:07:22 -0800 Subject: [PATCH] Fixed horizontal scrolling on window resize. --- core/flyout_horizontal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/flyout_horizontal.js b/core/flyout_horizontal.js index fd2c8c503..ac3c3dc1f 100644 --- a/core/flyout_horizontal.js +++ b/core/flyout_horizontal.js @@ -103,8 +103,8 @@ Blockly.HorizontalFlyout.prototype.getMetrics_ = function() { contentWidth: (optionBox.width + 2 * this.MARGIN) * this.workspace_.scale, viewTop: -this.workspace_.scrollY, viewLeft: -this.workspace_.scrollX, - contentTop: optionBox.y, - contentLeft: optionBox.x, + contentTop: 0, + contentLeft: 0, absoluteTop: absoluteTop, absoluteLeft: absoluteLeft };