From fc304ab930319329f1ab240a5aa2ef75bfe9f27f Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Wed, 23 Oct 2019 13:28:00 -0400 Subject: [PATCH] Fix for #3313 (#3316) (#3320) * Account for output connection with when aligning statement row --- core/renderers/common/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/renderers/common/info.js b/core/renderers/common/info.js index ed64db840..60bd66e86 100644 --- a/core/renderers/common/info.js +++ b/core/renderers/common/info.js @@ -545,7 +545,7 @@ Blockly.blockRendering.RenderInfo.prototype.addAlignmentPadding_ = function(row, Blockly.blockRendering.RenderInfo.prototype.alignStatementRow_ = function(row) { var statementInput = row.getLastInput(); var currentWidth = row.width - statementInput.width; - var desiredWidth = this.statementEdge - this.startX; + var desiredWidth = this.statementEdge; // Add padding before the statement input. var missingSpace = desiredWidth - currentWidth; if (missingSpace) {