Skip to content

Commit

Permalink
Fix #9622 adjusted rowHeight when not configured (#9700)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored Nov 14, 2023
1 parent fc3b396 commit 66e97e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions web/client/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,7 @@
}
},
"OmniBar", "Login", "Save", "SaveAs", "Expander", "Undo", "Redo", "FullScreen", "GlobeViewSwitcher", "SearchServicesConfig", "SearchByBookmark", "WidgetsBuilder", {
"name": "Widgets",
"cfg": {
"enableZoomInTblWidget": true
}
"name": "Widgets"
},
"WidgetsTray",
{
Expand Down Expand Up @@ -749,10 +746,7 @@
"dashboard": [
"BurgerMenu",
{
"name": "Dashboard",
"cfg": {
"enableZoomInTblWidget": true
}
"name": "Dashboard"
},
"Notifications",
"Login",
Expand Down
4 changes: 2 additions & 2 deletions web/client/plugins/Widgets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 66e97e7

Please sign in to comment.