Skip to content

Commit

Permalink
Fix widgets layout issues and catalogUrl updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Nov 13, 2024
1 parent 95bad6b commit 63daecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const shouldMapOrKeys = ({ mapSync, geomProp, dependencies = {}, layer, quickFil
|| options !== nextProps.options
|| quickFilters !== nextProps.quickFilters
|| getCqlFilter(layer, dependencies) !== getCqlFilter(nextProps.layer, nextProps.dependencies)
|| getLayerFilter(layer) !== getLayerFilter(nextProps.layer);
|| getLayerFilter(layer) !== getLayerFilter(nextProps.layer)
|| layer.catalogUrl !== nextProps.layer.catalogUrl;
};

const createFilterProps = ({ mapSync, geomProp = "the_geom", dependencies = {}, filter: filterObj, layer, quickFilters, options } = {}) => {
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/Widgets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ compose(
} : {};
const widthOptions = width ? {width: viewWidth - 1} : {};
const baseHeight = isSingleWidgetLayout
? rowHeight || rowHeightRecalculated
? rowHeightRecalculated || rowHeight
: Math.floor((height - 100) / (rowHeightRecalculated + 10)) * (rowHeightRecalculated + 10);
return ({
rowHeight: isSingleWidgetLayout ? rowHeightRecalculated : rowHeight || rowHeightRecalculated,
Expand Down

0 comments on commit 63daecd

Please sign in to comment.