Fix multiline field not rendered in flyout (#3984)

This commit is contained in:
Sam El-Husseini
2020-06-22 15:52:18 -07:00
committed by GitHub
parent 638ecf6023
commit 9152c55c9f

View File

@@ -477,6 +477,8 @@ Blockly.Flyout.prototype.show = function(flyoutDef) {
throw TypeError('Result of toolbox category callback must be an array.');
}
}
this.setVisible(true);
// Parse the Array or NodeList passed in into an Array of
// Blockly.utils.toolbox.Toolbox.
var parsedContent = Blockly.utils.toolbox.convertToolboxToJSON(flyoutDef);
@@ -484,8 +486,6 @@ Blockly.Flyout.prototype.show = function(flyoutDef) {
/** @type {{contents:!Array.<!Object>, gaps:!Array.<number>}} */ (
this.createFlyoutInfo_(parsedContent));
this.setVisible(true);
this.layout_(flyoutInfo.contents, flyoutInfo.gaps);
// IE 11 is an incompetent browser that fails to fire mouseout events.