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

[editor] Fix section construction

Gridsizes were accidentally changed from array to object.
parent a8b47536
No related branches found
No related tags found
No related merge requests found
Pipeline #52019 failed
......@@ -37,8 +37,8 @@ export class Section {
this.dynamicPositioning = section.dynamicPositioning;
this.autoColumnSize = section.autoColumnSize;
this.autoRowSize = section.autoRowSize;
this.gridColumnSizes = { ...section.gridColumnSizes };
this.gridRowSizes = { ...section.gridRowSizes };
this.gridColumnSizes = [...section.gridColumnSizes];
this.gridRowSizes = [...section.gridRowSizes];
this.visibilityDelay = section.visibilityDelay;
this.animatedVisibility = section.animatedVisibility;
this.enableReHide = section.enableReHide;
......@@ -55,8 +55,8 @@ export class Section {
if (section?.dynamicPositioning !== undefined) this.dynamicPositioning = section.dynamicPositioning;
if (section?.autoColumnSize !== undefined) this.autoColumnSize = section.autoColumnSize;
if (section?.autoRowSize !== undefined) this.autoRowSize = section.autoRowSize;
if (section?.gridColumnSizes !== undefined) this.gridColumnSizes = { ...section.gridColumnSizes };
if (section?.gridRowSizes !== undefined) this.gridRowSizes = { ...section.gridRowSizes };
if (section?.gridColumnSizes !== undefined) this.gridColumnSizes = [...section.gridColumnSizes];
if (section?.gridRowSizes !== undefined) this.gridRowSizes = [...section.gridRowSizes];
if (section?.visibilityDelay !== undefined) this.visibilityDelay = section.visibilityDelay;
if (section?.animatedVisibility !== undefined) this.animatedVisibility = section.animatedVisibility;
if (section?.enableReHide !== undefined) this.enableReHide = section.enableReHide;
......
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