mirror of
https://github.com/google/blockly.git
synced 2026-03-17 18:50:11 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user