Skip to content

Commit 6864d77

Browse files
committed
vis: tree display: fix balancer nodes not spanning the entire height they should
1 parent 441c9e8 commit 6864d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ott-vis-panel/src/components/TreeDisplay.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ const TreeDisplay: React.FC<TreeDisplayProps> = ({ systemState, width, height })
191191
// but also guarenteeing that they don't overlap with each other or the monoliths with some padding
192192
const fullHeight = monolithTreeYs[monolithTreeYs.length - 1];
193193
const lerp = d3.interpolateNumber(0, fullHeight);
194-
const lerpincr = 1 / systemState.length;
194+
const lerpincr = 1 / (systemState.length - 1);
195195
const yincr = Math.max(lerp(lerpincr), NODE_RADIUS * 2 + 20);
196196
const balancerNodes = systemState.map((balancer, i) => {
197197
const node: BalancerNode = {

0 commit comments

Comments
 (0)