We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f295e commit 6ed6944Copy full SHA for 6ed6944
django/applications/catmaid/static/js/tile-source.js
@@ -1526,7 +1526,7 @@
1526
let dimension = this.datasetAttributes[zoomLevel].ds.shape;
1527
let block_size = this.datasetAttributes[zoomLevel].ds.codecs[0].configuration.chunk_shape;
1528
let max = dimension.map((d, i) => {
1529
- return d / block_size[i];
+ return Math.ceil(d / block_size[i]) - 1;
1530
})
1531
let maxNum = new Array(max.length);
1532
max.forEach((n, i) => maxNum[i] = Number(n));
0 commit comments