mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tracing: Fix view bounds after trace change (#23994)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user