From 25a41fd6ab5e87a55a448f4cd8c2d079ca2cf8f3 Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 27 Aug 2019 17:24:29 -0700 Subject: [PATCH] Adding drop shadow into statement input height computation. --- core/renderers/measurables/inputs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/renderers/measurables/inputs.js b/core/renderers/measurables/inputs.js index 5bee55cf2..feadeeede 100644 --- a/core/renderers/measurables/inputs.js +++ b/core/renderers/measurables/inputs.js @@ -118,8 +118,11 @@ Blockly.blockRendering.StatementInput = function(input) { if (!this.connectedBlock) { this.height = this.constants_.EMPTY_STATEMENT_INPUT_HEIGHT; } else { + // We allow the dark path to show on the parent block so that the child + // block looks embossed. This takes up an extra pixel in both x and y. this.height = - this.connectedBlockHeight + this.constants_.STATEMENT_BOTTOM_SPACER; + this.connectedBlockHeight + this.constants_.DARK_PATH_OFFSET + + this.constants_.STATEMENT_BOTTOM_SPACER; } this.width = this.constants_.NOTCH_OFFSET_LEFT + this.shape.width;