Skip to content

Commit

Permalink
DevTools: Fix highlight updates Canvas side problem (#18973)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn authored May 21, 2020
1 parent f9bf828 commit c93a6cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export function draw(nodeToData: Map<NativeType, Data>): void {
}

const canvasFlow: HTMLCanvasElement = ((canvas: any): HTMLCanvasElement);
canvasFlow.width = window.screen.availWidth;
canvasFlow.height = window.screen.availHeight;
canvasFlow.width = window.innerWidth;
canvasFlow.height = window.innerHeight;

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

0 comments on commit c93a6cb

Please sign in to comment.