Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Apr 26, 2024
1 parent c2c2874 commit f2f3c83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/happy-dom/src/nodes/element/DOMRect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default class DOMRect {
* @param [height] Height.
*/
constructor(x?, y?, width?, height?) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.x = x || 0;
this.y = y || 0;
this.width = width || 0;
this.height = height || 0;
this.top = this.y;
this.right = this.x + this.width;
this.bottom = this.y + this.height;
Expand Down

0 comments on commit f2f3c83

Please sign in to comment.