refactor: remove redundant flyout positioning. (#8573)

* refactor: remove redundant flyout positioning.

* fix: handle the case where there is a flyout without a toolbox
This commit is contained in:
Aaron Dodson
2024-09-18 11:58:39 -07:00
committed by GitHub
parent 476d454c05
commit c79610cea6

View File

@@ -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();
}