mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Restore including statement width in this.width
calculation (#642)
This commit is contained in:
parent
02a9a6d607
commit
d929da38c5
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue