diff --git a/core/block_svg.js b/core/block_svg.js index 7c1ef782a..1ebaa5388 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -1807,7 +1807,9 @@ Blockly.BlockSvg.prototype.getHeightWidth = function() { var nextBlock = this.getNextBlock(); if (nextBlock) { var nextHeightWidth = nextBlock.getHeightWidth(); - height += nextHeightWidth.height - 4; // Height of tab. + var workspace = /** @type {!Blockly.WorkspaceSvg} */ (this.workspace); + var tabHeight = workspace.getRenderer().getConstants().NOTCH_HEIGHT; + height += nextHeightWidth.height - tabHeight; width = Math.max(width, nextHeightWidth.width); } return {height: height, width: width};