diff --git a/core/block_render.js b/core/block_render.js index c43ea4816e..c67260a388 100644 --- a/core/block_render.js +++ b/core/block_render.js @@ -1373,9 +1373,9 @@ Blockly.BlockSvg.prototype.renderDrawTop_ = function(steps, rightEdge) { */ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps, inputRows, iconWidth) { + var cursorX = 0; + var cursorY = 0; if (!this.isCollapsed()) { - var cursorX = 0; - var cursorY = 0; var connectionX, connectionY; for (var y = 0, row; row = inputRows[y]; y++) { cursorX = row.paddingStart;