Skip to content

Commit

Permalink
Merge pull request #30 from SneezingCactus/other-renderers-compat
Browse files Browse the repository at this point in the history
Make flydowns use the same renderer as the target workspace
Fixes #27
  • Loading branch information
mark-friedman authored Mar 16, 2023
2 parents 0dde14d + 0d0c9e9 commit d0ac0e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion block-lexical-variables/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ export function init(workspace) {
// TODO: Might need the next line
// Blockly.DropDownDiv.createDom();
const flydown = new Flydown(
new Blockly.Options({scrollbars: false}));
new Blockly.Options({
scrollbars: false,
rtl: workspace.RTL,
renderer: workspace.options.renderer,
rendererOverrides: workspace.options.rendererOverrides,
})
);
// ***** [lyn, 10/05/2013] NEED TO WORRY ABOUT MULTIPLE BLOCKLIES! *****
workspace.flydown_ = flydown;
Blockly.utils.dom.insertAfter(flydown.createDom('g'),
Expand Down

0 comments on commit d0ac0e2

Please sign in to comment.