diff --git a/projects/common/models/elements/compound-elements/likert/likert.ts b/projects/common/models/elements/compound-elements/likert/likert.ts index e2d2ab63aa91c3d3c860bd6c430001e53a4df6d4..863a859d0ad1ee3a9c970c12ae4fbd2e10e64aa5 100644 --- a/projects/common/models/elements/compound-elements/likert/likert.ts +++ b/projects/common/models/elements/compound-elements/likert/likert.ts @@ -27,7 +27,7 @@ export class LikertElement extends CompoundElement implements PositionedUIElemen this.rows = element.rows !== undefined ? element.rows?.map(row => new LikertRowElement(row)) : []; this.label = element.label !== undefined ? element.label : 'Optionentabelle Beschriftung'; this.label2 = element.label2 !== undefined ? element.label2 : 'Optionentabelle Erste Spalte'; - this.position = UIElement.initPositionProps(element.position); + this.position = UIElement.initPositionProps({ marginBottom: { value: 35, unit: 'px' }, ...element.position }); this.styling = { ...UIElement.initStylingProps({ backgroundColor: 'transparent', diff --git a/projects/common/models/elements/input-elements/radio-button-group.ts b/projects/common/models/elements/input-elements/radio-button-group.ts index 1cd321d1d399cd9be8e33fa034da97ecf08d5899..9899bd8996a605581bac90128367565e39dd2021 100644 --- a/projects/common/models/elements/input-elements/radio-button-group.ts +++ b/projects/common/models/elements/input-elements/radio-button-group.ts @@ -20,7 +20,7 @@ export class RadioButtonGroupElement extends InputElement implements PositionedU if (element.options) this.options = [...element.options]; if (element.alignment) this.alignment = element.alignment; if (element.strikeOtherOptions) this.strikeOtherOptions = element.strikeOtherOptions; - this.position = UIElement.initPositionProps({ marginBottom: { value: 30, unit: 'px' }, ...element.position }); + this.position = UIElement.initPositionProps({ ...element.position }); this.styling = { ...UIElement.initStylingProps({ backgroundColor: 'transparent',