From 1505e2625c23b13dff9f1e53c13da8ad5b435dc6 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 4 May 2022 14:58:30 +0200 Subject: [PATCH] No magic numbers. --- .../app/features/dashboard/pages/dashboard-page.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/features/dashboard/pages/dashboard-page.component.ts b/frontend/src/app/features/dashboard/pages/dashboard-page.component.ts index 80f1442d5..7a642f6da 100644 --- a/frontend/src/app/features/dashboard/pages/dashboard-page.component.ts +++ b/frontend/src/app/features/dashboard/pages/dashboard-page.component.ts @@ -91,7 +91,7 @@ export class DashboardPageComponent extends ResourceOwner implements AfterViewIn } public ngAfterViewChecked() { - this.extendedHeight = `${this.grid.gridRows.length * this.grid.curRowHeight - 10}px`; + this.extendedHeight = `${this.grid.gridRows.length * this.grid.curRowHeight - (this.gridOptions.margin || 0)}px`; } public changeIsStacked(value: boolean) {