Using statement input xPos instead of statementEdge.

This commit is contained in:
kozbial
2019-08-13 18:01:24 -07:00
parent 2d30ed2e9c
commit d921c4ff47

View File

@@ -198,8 +198,9 @@ Blockly.blockRendering.Drawer.prototype.drawStatementInput_ = function(row) {
if (this.highlighter_) {
this.highlighter_.drawStatementInput(row);
}
var input = row.getLastInput();
// Where to start drawing the notch, which is on the right side in LTR.
var x = row.xPos + row.statementEdge +
var x = row.xPos + input.xPos +
Blockly.blockRendering.constants.NOTCH_OFFSET_LEFT +
Blockly.blockRendering.constants.NOTCH.width;