Skip to content

Commit 58cab30

Browse files
author
Brian Vaughn
committed
Added Suspense event row-border lines
1 parent 1610784 commit 58cab30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-devtools-scheduling-profiler/src/content-views/SuspenseEventsView.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export class SuspenseEventsView extends View {
250250
visibleArea.size.width,
251251
visibleArea.size.height,
252252
);
253+
console.log('visibleArea:', JSON.stringify(visibleArea));
254+
console.log('frame:', JSON.stringify(frame));
253255

254256
// Draw events
255257
const scaleFactor = positioningScaleFactor(
@@ -273,7 +275,7 @@ export class SuspenseEventsView extends View {
273275
const borderFrame: Rect = {
274276
origin: {
275277
x: frame.origin.x,
276-
y: frame.origin.y + SUSPENSE_EVENT_HEIGHT,
278+
y: frame.origin.y + (i + 1) * ROW_WITH_BORDER_HEIGHT - BORDER_SIZE,
277279
},
278280
size: {
279281
width: frame.size.width,

0 commit comments

Comments
 (0)