Skip to content
Snippets Groups Projects
Commit 25680255 authored by rhenck's avatar rhenck
Browse files

[editor] Fix elements created in dynamic section

The new elements now correctly set their own dynamicPositioning 
parameter to the setting of it's parent section.
parent e9b44502
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment