Restore including statement width in this.width calculation (#642)

This commit is contained in:
Tim Mickel 2016-09-30 16:18:21 -04:00 committed by GitHub
parent 02a9a6d607
commit d929da38c5

View file

@ -1180,9 +1180,10 @@ Blockly.BlockSvg.prototype.renderDrawRight_ = function(steps,
connectionX = connectionsXY.x + (this.RTL ? -cursorX : cursorX);
connectionY = connectionsXY.y + cursorY;
input.connection.moveTo(connectionX, connectionY);
if (input.connection.isConnected()) {
input.connection.tighten_();
this.width = Math.max(this.width, inputRows.statementEdge +
input.connection.targetBlock().getHeightWidth().width);
}
if (y == inputRows.length - 1 ||
inputRows[y + 1].type == Blockly.NEXT_STATEMENT) {