mirror of
https://github.com/google/blockly.git
synced 2026-01-16 13:27:09 +01:00
Look up notch height from the current renderer (#3217)
This commit is contained in:
committed by
Sam El-Husseini
parent
e18dcd1bea
commit
43f9ab6889
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user