diff --git a/js/trackView.js b/js/trackView.js index a65ba4f4d..dc005fbe4 100644 --- a/js/trackView.js +++ b/js/trackView.js @@ -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())) } }