diff --git a/core/block_render_svg.js b/core/block_render_svg.js index ace458096..009fc50f4 100644 --- a/core/block_render_svg.js +++ b/core/block_render_svg.js @@ -104,9 +104,6 @@ Blockly.BlockSvg.prototype.getHeightWidth = function() { var nextHeightWidth = nextBlock.getHeightWidth(); height += nextHeightWidth.height - 4; // Height of tab. width = Math.max(width, nextHeightWidth.width); - } else if (!this.nextConnection && !this.outputConnection) { - // Add a bit of margin under blocks with no bottom tab. - height += 2; } return {height: height, width: width}; }; diff --git a/core/renderers/common/constants.js b/core/renderers/common/constants.js index 3106e4ad7..2d8dd1fb2 100644 --- a/core/renderers/common/constants.js +++ b/core/renderers/common/constants.js @@ -77,7 +77,7 @@ Blockly.blockRendering.ConstantProvider = function() { // the left side of the notch. this.NOTCH_OFFSET_LEFT = 15; - this.STATEMENT_BOTTOM_SPACER = 5; + this.STATEMENT_BOTTOM_SPACER = 0; this.STATEMENT_INPUT_PADDING_LEFT = 20; this.BETWEEN_STATEMENT_PADDING_Y = 4; diff --git a/core/renderers/measurables/inputs.js b/core/renderers/measurables/inputs.js index 3827f5bf8..5bee55cf2 100644 --- a/core/renderers/measurables/inputs.js +++ b/core/renderers/measurables/inputs.js @@ -120,9 +120,6 @@ Blockly.blockRendering.StatementInput = function(input) { } else { this.height = this.connectedBlockHeight + this.constants_.STATEMENT_BOTTOM_SPACER; - if (this.connectedBlock.nextConnection) { - this.height -= this.shape.height; - } } this.width = this.constants_.NOTCH_OFFSET_LEFT + this.shape.width;