Reduce an empty row surrounded by statement inputs to match size of bottom row (#3544)

This commit is contained in:
Sam El-Husseini
2020-01-06 12:39:07 -08:00
committed by GitHub
parent 6794f282d4
commit ec0ba27afc

View File

@@ -197,8 +197,7 @@ Blockly.zelos.RenderInfo.prototype.getSpacerRowHeight_ = function(
var height = Math.max(this.constants_.MEDIUM_PADDING,
Math.max(this.constants_.NOTCH_HEIGHT, cornerHeight));
return precedesStatement && followsStatement ?
Math.max(height,
cornerHeight * 2 + this.constants_.DUMMY_INPUT_MIN_HEIGHT) : height;
Math.max(height, this.constants_.DUMMY_INPUT_MIN_HEIGHT) : height;
}
if ((Blockly.blockRendering.Types.isBottomRow(next))) {
if (!this.outputConnection) {