diff --git a/projects/common/models/section.ts b/projects/common/models/section.ts index 0f6ddcfa3909d5a9e7ec5db85e537c43f7ae67f1..fce7ed6c570bca752eefdcb34ba9aa58d3f88fb6 100644 --- a/projects/common/models/section.ts +++ b/projects/common/models/section.ts @@ -25,7 +25,9 @@ export class Section { } async addElement(elementType: string, coordinates: { x: number; y: number } | undefined): Promise<void> { - this.elements.push(await ElementFactory.createElement({ type: elementType } as UIElement, coordinates)); + this.elements.push(await ElementFactory.createElement( + { type: elementType, dynamicPositioning: this.dynamicPositioning } as UIElement, coordinates + )); } deleteElements(elements: UIElement[]): void {