From ee7ad3dfeff82fb11ce49737e8afedab90547145 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Thu, 16 Nov 2017 00:53:07 -0800 Subject: [PATCH] Fix right aligned Flyout buttons when workspace is scaled --- core/flyout_vertical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/flyout_vertical.js b/core/flyout_vertical.js index 32dc7969f..5559c43d9 100644 --- a/core/flyout_vertical.js +++ b/core/flyout_vertical.js @@ -365,7 +365,7 @@ Blockly.VerticalFlyout.prototype.reflowInternal_ = function() { // With the flyoutWidth known, right-align the buttons. for (var i = 0, button; button = this.buttons_[i]; i++) { var y = button.getPosition().y; - var x = flyoutWidth - button.width - this.MARGIN - + var x = flyoutWidth / this.workspace_.scale - button.width - this.MARGIN - Blockly.BlockSvg.TAB_WIDTH; button.moveTo(x, y); }