From 9dc46ce2924ca5bd58488ae246dde6df8b1caf44 Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Tue, 12 Nov 2019 16:46:33 -0800 Subject: [PATCH] Set statement input height to be the max of the default statement input and the row height. (#3436) --- core/renderers/common/info.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/renderers/common/info.js b/core/renderers/common/info.js index d2f7efe7e..8ebe44a0c 100644 --- a/core/renderers/common/info.js +++ b/core/renderers/common/info.js @@ -590,6 +590,7 @@ Blockly.blockRendering.RenderInfo.prototype.alignStatementRow_ = function(row) { var rightCornerWidth = this.constants_.INSIDE_CORNERS.rightWidth || 0; desiredWidth = this.width - this.startX - rightCornerWidth; statementInput.width += (desiredWidth - currentWidth); + statementInput.height = Math.max(statementInput.height, row.height); row.width += (desiredWidth - currentWidth); row.widthWithConnectedBlocks = Math.max(row.width, this.statementEdge + row.connectedBlockWidths);