Skip to content

Commit

Permalink
Fixed calculation of max viewport content height
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadRoller committed Nov 8, 2023
1 parent 706ee23 commit 7503468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/trackView.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ class TrackView {
}

maxViewportContentHeight() {
return Math.max(this.viewports.map(viewport => viewport.getContentHeight()))
return Math.max(...this.viewports.map(viewport => viewport.getContentHeight()))
}

}
Expand Down

0 comments on commit 7503468

Please sign in to comment.