* Account for output connection with when aligning statement row
This commit is contained in:
Sam El-Husseini
2019-10-23 13:07:04 -04:00
committed by GitHub
parent c0c9c0e3d4
commit ad2c5f69ce

View File

@@ -546,7 +546,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) {