Fix hat spacing

This commit is contained in:
Paul Kaplan 2017-03-13 09:41:13 -04:00
parent ca0b32a613
commit cf93f2c092

View file

@ -421,7 +421,7 @@ Blockly.VerticalFlyout.prototype.layout_ = function(contents, gaps) {
this.addBlockListeners_(root, block, rect);
cursorY += blockHW.height + gaps[i];
cursorY += blockHW.height + gaps[i] + (block.startHat_ ? Blockly.BlockSvg.START_HAT_HEIGHT : 0);
} else if (item.type == 'button') {
var button = item.button;
var buttonSvg = button.createDom();