Add parentheses around arithmetic operation

resizeSvg
Aadhavan Srinivasan 2 weeks ago
parent 81fe778212
commit 977cd1aa62

@ -215,7 +215,7 @@ function stateOrDistrictOrLanguage(d) {
// const mapHeight = document.getElementById("indiaMap").getAttribute("height")
const mapWidth = /*window.innerWidth - */document.querySelector("#svgContainer").offsetWidth * 0.85;
// const mapHeight = document.querySelector("#svgContainer").offsetHeight;
const mapHeight = window.innerHeight - document.querySelector("#svgContainer").getBoundingClientRect().top * 0.7;
const mapHeight = (window.innerHeight - document.querySelector("#svgContainer").getBoundingClientRect().top) * 0.92;
const svg = d3.select("#svgContainer")
.append('svg')

Loading…
Cancel
Save