Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] Fixed typo in renderedSize cell-size (#90)
Giuseppe Macrìaecbdc55d0ab
diff --git a/src/components/common/data-table/cell-size.js b/src/components/common/data-table/cell-size.jsindex c83cd9d93..07a7ce6c4 100644--- a/src/components/common/data-table/cell-size.js+++ b/src/components/common/data-table/cell-size.js@@ -51,11 +51,11 @@ export function renderedSize({const context = textCanvas.getContext('2d');context.font = [fontSize, font].join('px ');let rowsToSample = [...Array(numRowsToCalculate)].map(() =>- Math.floor(Math.random() * (rows.length - 1 - 0 + 1))+ Math.floor(Math.random() * (rows.length - 1)));// IF we have less than 10 rows, lets measure all of them- if (rows.length < numRowsToCalculate) {+ if (rows.length <= numRowsToCalculate) {rowsToSample = Array.from(Array(rows.length).keys());}const rowWidth = Math.max(