Skip to content

Commit 7185550

Browse files
authored
block_render.js -- fix branched reporters moving connections
1 parent 093033c commit 7185550

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/block_render.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,10 @@ Blockly.BlockSvg.prototype.positionNewBlock = function(newBlock, newConnection,
19031903
var dx = existingConnection.x_ - newConnection.x_;
19041904
var dy = existingConnection.y_ - newConnection.y_;
19051905

1906-
newBlock.moveBy(dx, dy);
1906+
var offset = newConnection.sourceBlock_.outputLeftPadding_();
1907+
if (offset !== 0) offset += Blockly.BlockSvg.SEP_SPACE_X;
1908+
1909+
newBlock.moveBy(dx + offset, dy);
19071910
}
19081911
};
19091912

0 commit comments

Comments
 (0)