From d42afc7e694abdde84974ea246d0af66178b7664 Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Thu, 25 Feb 2021 12:00:46 -0800 Subject: [PATCH] Add missing madding to flyout (#4657) --- core/flyout_vertical.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/flyout_vertical.js b/core/flyout_vertical.js index 35b68eaa6..ac76f8328 100644 --- a/core/flyout_vertical.js +++ b/core/flyout_vertical.js @@ -89,8 +89,8 @@ Blockly.VerticalFlyout.prototype.getMetrics_ = function() { var metrics = { contentHeight: optionBox.height * this.workspace_.scale + 2 * this.MARGIN, contentWidth: optionBox.width * this.workspace_.scale + 2 * this.MARGIN, - contentTop: optionBox.y, - contentLeft: optionBox.x, + contentTop: optionBox.y - this.MARGIN, + contentLeft: optionBox.x - this.MARGIN, viewHeight: viewHeight, viewWidth: viewWidth,