Skip to content

Commit

Permalink
Added the separator back and fixed the resizing issue for the axis label
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Dec 12, 2023
1 parent d3bbc10 commit 70b1f94
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/components/timeline/RowYAxes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,17 @@
axisG.call(axisLeft);
axisG.call(g => g.select('.domain').remove());
}
// Draw separator
axisG
.append('line')
.attr('x1', 2)
.attr('y1', 0)
.attr('x2', 2)
.attr('y2', drawHeight)
.style('stroke', '#EBECEC')
.style('stroke-width', 2);
}
// Draw separator
axisG
.append('line')
.attr('x1', 2)
.attr('y1', 0)
.attr('x2', 2)
.attr('y2', drawHeight)
.style('stroke', '#EBECEC')
.style('stroke-width', 2);
}
const axisGElement: SVGGElement | null = axisG.node();
Expand All @@ -146,10 +146,8 @@
}
}
totalWidth += marginWidth;
if (totalWidth > 0 && drawWidth !== totalWidth) {
dispatch('updateYAxesWidth', totalWidth);
}
// Dispatch the width so the RowHeader can recalculate the label width.
dispatch('updateYAxesWidth', totalWidth + marginWidth);
}
}
</script>
Expand Down

0 comments on commit 70b1f94

Please sign in to comment.