Set statement input height to be the max of the default statement input and the row height. (#3436)

This commit is contained in:
Sam El-Husseini
2019-11-12 16:46:33 -08:00
committed by GitHub
parent a15d9611d0
commit 9dc46ce292

View File

@@ -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);