fix: Fix bug that caused blocks dragged from non-primary flyouts to be misplaced. (#8753)

* fix: Fix bug that caused blocks dragged from non-primary flyouts to be misplaced.

* chore: Fix docstring.
This commit is contained in:
Aaron Dodson
2025-02-04 15:23:03 -08:00
committed by GitHub
parent 343c2f51f3
commit e6e57ddc01
6 changed files with 45 additions and 51 deletions

View File

@@ -678,7 +678,7 @@ export abstract class Flyout
const type = info['kind'].toLowerCase();
const inflater = this.getInflaterForType(type);
if (inflater) {
contents.push(inflater.load(info, this.getWorkspace()));
contents.push(inflater.load(info, this));
const gap = inflater.gapForItem(info, defaultGap);
if (gap) {
contents.push(