mirror of
https://github.com/google/blockly.git
synced 2026-01-19 14:57:12 +01:00
Remove useless variable.
This commit is contained in:
@@ -304,11 +304,10 @@ Blockly.geras.RenderInfo.prototype.getElemCenterline_ = function(row, elem) {
|
||||
return baseline - elem.height / 2;
|
||||
}
|
||||
if (Blockly.blockRendering.Types.isTopRow(row)) {
|
||||
var capline = row.capline;
|
||||
if (Blockly.blockRendering.Types.isHat(elem)) {
|
||||
return capline - elem.height / 2;
|
||||
return row.capline - elem.height / 2;
|
||||
}
|
||||
return capline + elem.height / 2;
|
||||
return row.capline + elem.height / 2;
|
||||
}
|
||||
|
||||
var result = row.yPos;
|
||||
|
||||
@@ -305,11 +305,10 @@ Blockly.thrasos.RenderInfo.prototype.getElemCenterline_ = function(row, elem) {
|
||||
return baseline - elem.height / 2;
|
||||
}
|
||||
if (Blockly.blockRendering.Types.isTopRow(row)) {
|
||||
var capline = row.capline;
|
||||
if (Blockly.blockRendering.Types.isHat(elem)) {
|
||||
return capline - elem.height / 2;
|
||||
return row.capline - elem.height / 2;
|
||||
}
|
||||
return capline + elem.height / 2;
|
||||
return row.capline + elem.height / 2;
|
||||
}
|
||||
|
||||
var result = row.yPos;
|
||||
|
||||
@@ -296,11 +296,10 @@ Blockly.zelos.RenderInfo.prototype.getElemCenterline_ = function(row,
|
||||
return baseline - elem.height / 2;
|
||||
}
|
||||
if (Blockly.blockRendering.Types.isTopRow(row)) {
|
||||
var capline = row.capline;
|
||||
if (Blockly.blockRendering.Types.isHat(elem)) {
|
||||
return capline - elem.height / 2;
|
||||
return row.capline - elem.height / 2;
|
||||
}
|
||||
return capline + elem.height / 2;
|
||||
return row.capline + elem.height / 2;
|
||||
}
|
||||
|
||||
var result = row.yPos;
|
||||
|
||||
Reference in New Issue
Block a user