Skip to content

Commit

Permalink
fixed map clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
saanuregh committed May 9, 2020
1 parent 4a19278 commit 62822bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ function Map({ districts, summary, maxActive, zones }) {
}, [districts.summary, summary.delta, summary.summary]);

useEffect(() => {
if (width >= 1280) {
if (width >= 1600) {
setCurLang(Object.keys(lang).slice(1));
setMapHeight(610);
setLegendPos(440);
}else if (width >= 1280) {
setCurLang(Object.keys(lang).slice(1));
setMapHeight(610);
setLegendPos(480);
Expand Down

0 comments on commit 62822bb

Please sign in to comment.