mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fixing width computation and start x for statement input draw.
This commit is contained in:
@@ -200,9 +200,7 @@ Blockly.blockRendering.Drawer.prototype.drawStatementInput_ = function(row) {
|
||||
}
|
||||
var input = row.getLastInput();
|
||||
// Where to start drawing the notch, which is on the right side in LTR.
|
||||
var x = row.xPos + input.xPos +
|
||||
Blockly.blockRendering.constants.NOTCH_OFFSET_LEFT +
|
||||
Blockly.blockRendering.constants.NOTCH.width;
|
||||
var x = input.xPos + input.width;
|
||||
|
||||
var innerTopLeftCorner =
|
||||
Blockly.blockRendering.constants.NOTCH.pathRight + ' h -' +
|
||||
|
||||
@@ -292,7 +292,8 @@ Blockly.blockRendering.StatementInput = function(input) {
|
||||
this.height -= this.notchShape.height;
|
||||
}
|
||||
}
|
||||
this.width = this.notchShape.width * 2;
|
||||
this.width = Blockly.blockRendering.constants.NOTCH_OFFSET_LEFT +
|
||||
this.notchShape.width;
|
||||
};
|
||||
goog.inherits(Blockly.blockRendering.StatementInput,
|
||||
Blockly.blockRendering.Input);
|
||||
|
||||
Reference in New Issue
Block a user