Skip to content

Commit

Permalink
[fix] Remove legend layer groups height capping (#2864)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta authored Dec 26, 2024
1 parent f1245d7 commit 3bf006f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/src/map/map-legend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,7 @@ function MapLegendFactory(
onLayerVisConfigChange,
actionIcons = defaultActionIcons
}) => (
<div
className="map-legend"
{...(mapState?.height && {
style: {
/* subtracting rough size of 4 map control buttons and padding */
maxHeight: mapState.height - (isExport ? 0 : 250)
}
})}
>
<div className="map-legend">
{layers.map((layer, index) => {
if (!layer.isValidToSave() || layer.config.hidden) {
return null;
Expand Down

0 comments on commit 3bf006f

Please sign in to comment.