mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Fix zelos statement input alignment for spacers (#3578)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user