From 6cfaf04b4fab6e016901ca849c8261e7cabe8d32 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 19 Dec 2024 16:56:25 +0200 Subject: [PATCH] fix dashboard fallback height --- client/src/views/dashboard.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/views/dashboard.js b/client/src/views/dashboard.js index 79a50823ff..73d9e11d2c 100644 --- a/client/src/views/dashboard.js +++ b/client/src/views/dashboard.js @@ -192,8 +192,7 @@ class DashboardView extends View { if (window.innerWidth >= this.screenWidthXs) { this.initGridstack(); - } - else { + } else { this.initFallbackMode(); } @@ -489,7 +488,7 @@ class DashboardView extends View { $container.attr('data-y', o.y); $container.attr('data-height', o.height); $container.attr('data-width', o.width); - $container.css('height', (o.height * this.cellHeight) + 'px'); + $container.css('height', (o.height * this.cellHeight * this.HEIGHT_MULTIPLIER) + 'px'); $item.attr('data-id', o.id); $item.attr('data-name', o.name);