From 66e97e7c87e6602a9243e17601dfb7de36a1d7c6 Mon Sep 17 00:00:00 2001 From: Matteo V Date: Tue, 14 Nov 2023 11:42:59 +0100 Subject: [PATCH] Fix #9622 adjusted rowHeight when not configured (#9700) --- web/client/configs/localConfig.json | 10 ++-------- web/client/plugins/Widgets.jsx | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/web/client/configs/localConfig.json b/web/client/configs/localConfig.json index 649cbce9fc..51a4ee8638 100644 --- a/web/client/configs/localConfig.json +++ b/web/client/configs/localConfig.json @@ -557,10 +557,7 @@ } }, "OmniBar", "Login", "Save", "SaveAs", "Expander", "Undo", "Redo", "FullScreen", "GlobeViewSwitcher", "SearchServicesConfig", "SearchByBookmark", "WidgetsBuilder", { - "name": "Widgets", - "cfg": { - "enableZoomInTblWidget": true - } + "name": "Widgets" }, "WidgetsTray", { @@ -749,10 +746,7 @@ "dashboard": [ "BurgerMenu", { - "name": "Dashboard", - "cfg": { - "enableZoomInTblWidget": true - } + "name": "Dashboard" }, "Notifications", "Login", diff --git a/web/client/plugins/Widgets.jsx b/web/client/plugins/Widgets.jsx index 5df65050fa..a2dd248c2e 100644 --- a/web/client/plugins/Widgets.jsx +++ b/web/client/plugins/Widgets.jsx @@ -144,10 +144,10 @@ compose( } : {}; const widthOptions = width ? {width: viewWidth - 1} : {}; const baseHeight = isSingleWidgetLayout - ? rowHeight + ? rowHeight || rowHeightRecalculated : Math.floor((height - 100) / (rowHeightRecalculated + 10)) * (rowHeightRecalculated + 10); return ({ - rowHeight: isSingleWidgetLayout ? rowHeightRecalculated : rowHeight, + rowHeight: isSingleWidgetLayout ? rowHeightRecalculated : rowHeight || rowHeightRecalculated, className: "on-map", breakpoints: isSingleWidgetLayout ? { xxs: 0 } : { md: 0 }, cols: cols || { md: 6, xxs: 1 },