Skip to content

Commit

Permalink
fix: weird bug with resizing of workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed May 5, 2024
1 parent 528ccee commit 91c30e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/components/workspace/blocks/Blocks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ onMount(() => {
),
);
updateSizing();
$workspace.addChangeListener(() => {
$workspace.addChangeListener((event: any) => {
if (!(event.type === "toolbox_item_select")) {
return;
}
code.set(arduino.workspaceToCode($workspace));
updateSizing();
($workspace as WorkspaceSvg).resize();
Expand Down

0 comments on commit 91c30e5

Please sign in to comment.