Skip to content

Commit

Permalink
fix(canvas): fix external canvas style (#284)
Browse files Browse the repository at this point in the history
resolve #283
  • Loading branch information
lslzl3000 committed Aug 11, 2023
1 parent bc80466 commit bb89a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gfx/graphics/webGpu/Context3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Context3D {
if (_width != this.canvas.clientWidth)
this.canvas.style.width = _width + 'px'
if (_height != this.canvas.clientHeight)
this.canvas.style.width = _height + 'px'
this.canvas.style.height = _height + 'px'
} else {
this.canvas = document.createElement('canvas');
// this.canvas.style.position = 'fixed';
Expand Down

0 comments on commit bb89a68

Please sign in to comment.