aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue
index 9dcb08b..bfd2730 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -106,7 +106,7 @@ const timelineWidth = computed(() => {
});
const timelineHeight = computed(() => {
let baseLineHeight = (store.showBaseLine && !vert.value) ? store.baseLineBreadth : 0;
- return (contentHeight.value - baseLineHeight) / (vert.value ? 1 : timelines.value.length);
+ return Math.max(1, contentHeight.value - baseLineHeight) / (vert.value ? 1 : timelines.value.length);
});
function updateAreaDims(){