Skip to content

Commit

Permalink
[Fix] Fix Blockly editor resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed Aug 11, 2023
1 parent 8acbc3f commit d8ea389
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/stepper/js/BlocklyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export const BlocklyEditor = (props: BlocklyEditorProps) => {

const resize = () => {
log.getLogger('editor').debug('[blockly.editor] resize');
if (context && context.blocklyHelper) {
context.blocklyHelper.unloadLevel();
}
onLoad();
};

const onBlocklyEvent = (event) => {
Expand Down

0 comments on commit d8ea389

Please sign in to comment.