Skip to content

Commit

Permalink
refactor: remove redundant flyout positioning. (#8573)
Browse files Browse the repository at this point in the history
* refactor: remove redundant flyout positioning.

* fix: handle the case where there is a flyout without a toolbox
  • Loading branch information
gonfunko committed Sep 18, 2024
1 parent 476d454 commit c79610c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/workspace_svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit c79610c

Please sign in to comment.