mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
Fix multiline field not rendered in flyout (#3984)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user