Fix zelos statement input alignment for spacers (#3578)

This commit is contained in:
Sam El-Husseini
2020-01-13 10:32:49 -08:00
committed by GitHub
parent 8f787a3e41
commit 8b50df01c0

View File

@@ -224,7 +224,7 @@ Blockly.zelos.RenderInfo.prototype.getSpacerRowWidth_ = function(prev, next) {
* @override
*/
Blockly.zelos.RenderInfo.prototype.getElemCenterline_ = function(row, elem) {
if (row.hasStatement) {
if (row.hasStatement && !Blockly.blockRendering.Types.isSpacer(elem)) {
return row.yPos + this.constants_.EMPTY_STATEMENT_INPUT_HEIGHT / 2;
}
return Blockly.zelos.RenderInfo.superClass_.getElemCenterline_.call(this,