Skip to content

Commit 51d4463

Browse files
committed
fix: skip timegrid drawing if width is 0, closes #1357
1 parent af553d5 commit 51d4463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-frontend/src/features/timeline/TimelineView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export default {
512512
})
513513
514514
function drawTimeGrid () {
515-
if (!timeGrid.visible) return
515+
if (!timeGrid.visible || !app.view.width) return
516516
517517
const ratio = (endTime.value - startTime.value) / app.view.width
518518
let timeInterval = 10

0 commit comments

Comments
 (0)