Skip to content

Commit

Permalink
update both axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Lorenz committed Jun 17, 2024
1 parent 67fc4ea commit 7616349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Editor2D {
}

clearAndFitToWindow() {
this.canvas.width = $("#canvas").innerWidth();
this.canvas.width = $('#canvas').innerWidth();
this.canvas.height = $('#canvas').innerHeight();

console.log(this.canvas.width, ' ', this.canvas.height);
Expand Down

0 comments on commit 7616349

Please sign in to comment.