Commit 243d7fb2 authored by Sathya Gunasekaran's avatar Sathya Gunasekaran Committed by V8 LUCI CQ

[system analyzer] Dont try to render empty timeline tracks

Change-Id: Ibcfdfa7c6f8e5c13f6f2a5098fc7fde4fa15f3c4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3172757
Auto-Submit: Sathya Gunasekaran  <gsathya@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76962}
parent 62f4d065
......@@ -24,7 +24,7 @@ export class TimelineTrackStackedBase extends TimelineTrackBase {
set data(timeline) {
super.data = timeline;
this._contentWidth = 0;
this._prepareDrawableItems();
if (timeline.values.length > 0) this._prepareDrawableItems();
}
_handleDoubleClick(event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment