[zelos] Fix breakout loop block (#3545)

* Fix breakout loop block by only applying the small padding if the block doesn't have a statement input
This commit is contained in:
Sam El-Husseini
2020-01-06 12:38:54 -08:00
committed by GitHub
parent cd1d18b7a0
commit 6794f282d4

View File

@@ -513,7 +513,7 @@ Blockly.zelos.RenderInfo.prototype.finalizeVerticalAlignment_ = function() {
prevSpacer.height -= this.constants_.GRID_UNIT;
nextSpacer.height -= this.constants_.GRID_UNIT;
}
} else if (hasPrevNotch && !hasNextNotch) {
} else if (i != 2 && hasPrevNotch && !hasNextNotch) {
// Add a small padding so the notch doesn't interfere with inputs/fields.
prevSpacer.height += this.constants_.SMALL_PADDING;
}