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: 661937030
  • Loading branch information
Profiler Team authored and copybara-github committed Aug 12, 2024
1 parent 55c4735 commit 85605bf
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 85605bf

Please sign in to comment.