diff --git a/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html b/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html index eddbfc417..17fea389b 100644 --- a/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html +++ b/plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html @@ -485,8 +485,6 @@ Polymer.dom(this.root).appendChild(this._traceViewer); Polymer.dom(this.root).appendChild(this._throbber); - this._listenForViewportChanges(); - this._resolution = this._resolutionFromViewerWidth(this._traceViewer.clientWidth); // Retrieve the URL of trace data. var query = new URL(window.location.href); @@ -529,6 +527,9 @@ this._displayOverlay('Trace Viewer', 'Trace data URL is not provided.'); return null; } + + this._listenForViewportChanges(); + this._init(this.currentViewportRange); this._adjustUI();