From b5a2f75ceeb4831933ef4c5e4e864edeecef565f Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 13 Apr 2016 15:54:05 -0700 Subject: [PATCH] Add tooltips to input holes in flyout. --- core/flyout.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/flyout.js b/core/flyout.js index 84bcbb810..f960bafba 100644 --- a/core/flyout.js +++ b/core/flyout.js @@ -426,6 +426,8 @@ Blockly.Flyout.prototype.show = function(xmlList) { // Create an invisible rectangle under the block to act as a button. Just // using the block as a button is poor, since blocks have holes in them. var rect = Blockly.createSvgElement('rect', {'fill-opacity': 0}, null); + rect.tooltip = block; + Blockly.Tooltip.bindMouseEvents(rect); // Add the rectangles under the blocks, so that the blocks' tooltips work. this.workspace_.getCanvas().insertBefore(rect, block.getSvgRoot()); block.flyoutRect_ = rect;