Skip to content

Commit c93a6cb

Browse files
author
Brian Vaughn
authored
DevTools: Fix highlight updates Canvas side problem (facebook#18973)
1 parent f9bf828 commit c93a6cb

File tree

1 file changed

+2
-2
lines changed
  • packages/react-devtools-shared/src/backend/views/TraceUpdates

1 file changed

+2
-2
lines changed

packages/react-devtools-shared/src/backend/views/TraceUpdates/canvas.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export function draw(nodeToData: Map<NativeType, Data>): void {
3535
}
3636

3737
const canvasFlow: HTMLCanvasElement = ((canvas: any): HTMLCanvasElement);
38-
canvasFlow.width = window.screen.availWidth;
39-
canvasFlow.height = window.screen.availHeight;
38+
canvasFlow.width = window.innerWidth;
39+
canvasFlow.height = window.innerHeight;
4040

4141
const context = canvasFlow.getContext('2d');
4242
context.clearRect(0, 0, canvasFlow.width, canvasFlow.height);

0 commit comments

Comments
 (0)