diff --git a/core/block_flyout_inflater.ts b/core/block_flyout_inflater.ts index 6011b150e..b180dbc0c 100644 --- a/core/block_flyout_inflater.ts +++ b/core/block_flyout_inflater.ts @@ -101,6 +101,15 @@ export class BlockFlyoutInflater implements IFlyoutInflater { ) { blockDefinition['disabledReasons'] = [MANUALLY_DISABLED]; } + // These fields used to be allowed and may still be present, but are + // ignored here since everything in the flyout should always be laid out + // linearly. + if ('x' in blockDefinition) { + delete blockDefinition['x']; + } + if ('y' in blockDefinition) { + delete blockDefinition['y']; + } block = blocks.appendInternal(blockDefinition as blocks.State, workspace); } diff --git a/core/utils/toolbox.ts b/core/utils/toolbox.ts index 296bb6dcc..f81ebdc72 100644 --- a/core/utils/toolbox.ts +++ b/core/utils/toolbox.ts @@ -24,8 +24,6 @@ export interface BlockInfo { disabledReasons?: string[]; enabled?: boolean; id?: string; - x?: number; - y?: number; collapsed?: boolean; inline?: boolean; data?: string;