Skip to content

Commit

Permalink
Call _listenForViewportChanges() after reading query params, not be…
Browse files Browse the repository at this point in the history
…fore.

PiperOrigin-RevId: 661336708
  • Loading branch information
Profiler Team authored and copybara-github committed Aug 9, 2024
1 parent 55c4735 commit e656176
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/trace_viewer/tf_trace_viewer/tf-trace-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -529,6 +527,9 @@
this._displayOverlay('Trace Viewer', 'Trace data URL is not provided.');
return null;
}

this._listenForViewportChanges();

this._init(this.currentViewportRange);
this._adjustUI();

Expand Down

0 comments on commit e656176

Please sign in to comment.