[zelos] Add right connection shape element. (#3488)

* Add right connection shape element
This commit is contained in:
Sam El-Husseini
2019-12-05 17:51:39 -08:00
committed by GitHub
parent bcb9e949d2
commit 4eb791bd70
7 changed files with 97 additions and 58 deletions

View File

@@ -728,7 +728,8 @@ Blockly.blockRendering.RenderInfo.prototype.finalize_ = function() {
this.recordElemPositions_(row);
}
this.widthWithChildren = widestRowWithConnectedBlocks + this.startX;
this.widthWithChildren = Math.max(this.widthWithChildren,
widestRowWithConnectedBlocks + this.startX);
this.height = yCursor;
this.startY = this.topRow.capline;