We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524adb5 commit ea8d897Copy full SHA for ea8d897
src/components/vue-ui-horizontal-bar.vue
@@ -553,7 +553,11 @@ const parentLabelOffsets = computed(() => {
553
const barHeight = computed(() => {
554
const p = Math.max(0, ...parentLabelOffsets.value);
555
const parentOffsets = p * parentLabelBlockHeight.value;
556
- return (HEIGHT.value - barCount.value * BAR_GAP.value - parentOffsets) / barCount.value;
+ const innerHeight = HEIGHT.value - 24;
557
+ return (
558
+ (innerHeight - (barCount.value - 1) * BAR_GAP.value - parentOffsets) /
559
+ barCount.value
560
+ );
561
});
562
563
const svg = computed(() => {
0 commit comments