Use the main workspaces stack glow filter for both flyout and toolbox

This fixes the stack glow filter not existing for both the "simple" and "category" modes of the workspace.
This commit is contained in:
Paul Kaplan 2018-06-01 10:13:37 -04:00
parent df6b7208fb
commit 88383d0998
2 changed files with 4 additions and 2 deletions

View file

@ -161,7 +161,8 @@ Blockly.Toolbox.prototype.createFlyout_ = function() {
RTL: workspace.RTL,
oneBasedIndex: workspace.options.oneBasedIndex,
horizontalLayout: workspace.horizontalLayout,
toolboxPosition: workspace.options.toolboxPosition
toolboxPosition: workspace.options.toolboxPosition,
stackGlowFilterId: workspace.options.stackGlowFilterId
};
if (workspace.horizontalLayout) {

View file

@ -589,7 +589,8 @@ Blockly.WorkspaceSvg.prototype.addFlyout_ = function(tagName) {
RTL: this.RTL,
oneBasedIndex: this.options.oneBasedIndex,
horizontalLayout: this.horizontalLayout,
toolboxPosition: this.options.toolboxPosition
toolboxPosition: this.options.toolboxPosition,
stackGlowFilterId: this.options.stackGlowFilterId
};
if (this.horizontalLayout) {
this.flyout_ = new Blockly.HorizontalFlyout(workspaceOptions);