Commit 1f9ebf04 by Andrej Ocenas Committed by GitHub

Tracing: Fix view bounds after trace change (#23994)

parent 6c7a9172
......@@ -202,12 +202,12 @@ export class UnthemedVirtualizedTraceView extends React.Component<VirtualizedTra
if (trace !== nextTrace || childrenHiddenIDs !== nextHiddenIDs || detailStates !== nextDetailStates) {
this.rowStates = nextTrace ? generateRowStates(nextTrace.spans, nextHiddenIDs, nextDetailStates) : [];
}
if (currentViewRangeTime !== nextViewRangeTime) {
if (currentViewRangeTime !== nextViewRangeTime || (trace !== nextTrace && nextTrace)) {
this.clipping = getClipping(nextViewRangeTime);
const [zoomStart, zoomEnd] = nextViewRangeTime;
this.getViewedBounds = createViewedBoundsFunc({
min: trace.startTime,
max: trace.endTime,
min: nextTrace.startTime,
max: nextTrace.endTime,
viewStart: zoomStart,
viewEnd: zoomEnd,
});
......
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