Skip to content

Commit

Permalink
Fix for #1034: use the options provided from Admin UI regarding width…
Browse files Browse the repository at this point in the history
…, height, title and position.
  • Loading branch information
jacobwod committed May 2, 2022
1 parent e35d305 commit 415c9c2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions new-client/src/components/MapClickViewer/MapClickViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ const MapClickViewer = (props) => {
};
}, [closeWindow, globalObserver]);

const { height, position, title, width } = props.infoclickOptions;

return (
<Window
globalObserver={props.globalObserver}
title="Information"
title={title || "Information"}
open={open}
height="dynamic"
width={400}
position="right"
height={height || "dynamic"}
width={width || 400}
position={position || "right"}
mode="window"
onClose={closeWindow}
>
Expand Down

0 comments on commit 415c9c2

Please sign in to comment.