Skip to content

Commit

Permalink
fix(widget/position_plot): fix display of position plot
Browse files Browse the repository at this point in the history
  • Loading branch information
jbms committed Mar 7, 2023
1 parent 6d89452 commit 8e9c17e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neuroglancer/widget/position_plot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function getNormalizedDimensionBounds(
const result = computeCombinedLowerUpperBound(boundingBox, dimensionIndex, rank);
if (result === undefined) continue;
result.lower = Math.max(0, normalize(result.lower));
result.upper = normalize(Math.min(1, Math.ceil(result.upper - 1)));
result.upper = Math.min(height - 1, normalize(Math.ceil(result.upper - 1)));
normalizedBounds.push(result);
}
normalizedBounds.sort((a, b) => {
Expand Down

0 comments on commit 8e9c17e

Please sign in to comment.