From 3aea7e7a29fe688f5832403a8365cdcd27675ed8 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Fri, 17 Sep 2021 14:05:26 +0200 Subject: [PATCH] [editor] Fix transfered elements not updating static/dynamic --- projects/editor/src/app/unit.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/editor/src/app/unit.service.ts b/projects/editor/src/app/unit.service.ts index 432b8f526..001d9a8ef 100644 --- a/projects/editor/src/app/unit.service.ts +++ b/projects/editor/src/app/unit.service.ts @@ -183,7 +183,10 @@ export class UnitService { /* Move element between sections */ transferElement(elements: UnitUIElement[], previousSection: UnitPageSection, newSection: UnitPageSection): void { previousSection.elements = previousSection.elements.filter(element => !elements.includes(element)); - elements.forEach(element => newSection.elements.push(element)); + elements.forEach(element => { + newSection.elements.push(element); + element.dynamicPositioning = newSection.dynamicPositioning; + }); this._unit.next(this._unit.value); this.veronaApiService.sendVoeDefinitionChangedNotification(); } -- GitLab