Remove duplicate check and undo changes in debugger render.

This commit is contained in:
kozbial
2019-09-12 13:36:45 -07:00
parent 90a10e5f44
commit 8a00ed9eb2
2 changed files with 2 additions and 6 deletions

View File

@@ -64,9 +64,9 @@ Blockly.blockRendering.Debug = function() {
Blockly.blockRendering.Debug.getDebugConfig = function() {
return {
rowSpacers: true,
// rowSpacers: true,
// elemSpacers: true,
rows: true,
// rows: true,
elems: true,
// connections: true,
blockBounds: true,

View File

@@ -262,10 +262,6 @@ Blockly.blockRendering.RenderInfo.prototype.shouldStartNewRow_ = function(input,
if (!lastInput) {
return false;
}
// A statement input always gets a new row.
if (input.type == Blockly.NEXT_STATEMENT) {
return true;
}
// A statement input or an input following one always gets a new row.
if (input.type == Blockly.NEXT_STATEMENT ||
lastInput.type == Blockly.NEXT_STATEMENT) {