aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2021-11-09 17:28:14 -0500
committermehekj <mehek.jethani@gmail.com>2021-11-09 17:28:14 -0500
commit079340d9a98509c7fa7e365ead2d2ae283fe6861 (patch)
tree39657bdfa962ae6abbb2cf0c88d3238d0c4da04c /src
parentdee64c39f722dfa9502bd5b590aa4349e053784e (diff)
fixed width of trimmed markers
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionStackedTimeline.tsx2
1 files changed, 1 insertions, 1 deletions
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 : (