mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
* Account for output connection with when aligning statement row
This commit is contained in:
@@ -546,7 +546,7 @@ Blockly.blockRendering.RenderInfo.prototype.addAlignmentPadding_ = function(row,
|
||||
Blockly.blockRendering.RenderInfo.prototype.alignStatementRow_ = function(row) {
|
||||
var statementInput = row.getLastInput();
|
||||
var currentWidth = row.width - statementInput.width;
|
||||
var desiredWidth = this.statementEdge - this.startX;
|
||||
var desiredWidth = this.statementEdge;
|
||||
// Add padding before the statement input.
|
||||
var missingSpace = desiredWidth - currentWidth;
|
||||
if (missingSpace) {
|
||||
|
||||
Reference in New Issue
Block a user