From c79610cea6f7f1cdfad06772e0b1be8f0c17d6b6 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Wed, 18 Sep 2024 11:58:39 -0700 Subject: [PATCH] refactor: remove redundant flyout positioning. (#8573) * refactor: remove redundant flyout positioning. * fix: handle the case where there is a flyout without a toolbox --- core/workspace_svg.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/workspace_svg.ts b/core/workspace_svg.ts index 910171007..7c57f47cd 100644 --- a/core/workspace_svg.ts +++ b/core/workspace_svg.ts @@ -1049,8 +1049,7 @@ export class WorkspaceSvg extends Workspace implements IASTNodeLocationSvg { resize() { if (this.toolbox_) { this.toolbox_.position(); - } - if (this.flyout) { + } else if (this.flyout) { this.flyout.position(); }