mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
DevTools: Fix highlight updates Canvas side problem (#18973)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user