From 079340d9a98509c7fa7e365ead2d2ae283fe6861 Mon Sep 17 00:00:00 2001 From: mehekj Date: Tue, 9 Nov 2021 17:28:14 -0500 Subject: fixed width of trimmed markers --- src/client/views/collections/CollectionStackedTimeline.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index 8c98afdb3..78883b577 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -622,7 +622,7 @@ export class CollectionStackedTimeline extends CollectionSubView< if (end < this.clipStart || start > this.clipEnd) return (null); const left = Math.max((start - this.clipStart) / this.clipDuration * this.timelineContentWidth, 0); const top = (d.level / maxLevel) * this.props.PanelHeight(); - const timespan = Math.max(0, end - this.clipStart) - Math.max(0, start - this.clipStart); + const timespan = Math.max(0, Math.min(end - this.clipStart, this.clipEnd)) - Math.max(0, start - this.clipStart); const width = (timespan / this.clipDuration) * this.timelineContentWidth; const height = this.props.PanelHeight() / maxLevel; return this.props.Document.hideAnchors ? null : ( -- cgit v1.2.3-70-g09d2