Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 51f5b79

Browse files
author
Aaron Imming
committed
Position flyout on workspace/window resize
1 parent 198ea83 commit 51f5b79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scratch/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ export const scratchWorkspaceInit = async (scratch_area_name, scratch_div_name)
6161
el_scratch_div.style.top = `${y}px`;
6262
el_scratch_div.style.width = `${scratch_area.offsetWidth}px`;
6363
el_scratch_div.style.height = `${scratch_area.offsetHeight}px`;
64-
64+
6565
Blockly.svgResize(workspace);
66+
workspace.toolbox_.flyout_.position();
6667
};
6768

6869
// Resize workspace on workspace event, workaround for jumping workspace.

0 commit comments

Comments
 (0)