Skip to content

Commit

Permalink
Revert changes to resize function
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Jul 30, 2023
1 parent ef11412 commit c2cf676
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/Container/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,13 @@ class Container extends Element {
/**
* Resize the container.
*
* @param x - The number of pixels to resize the width. Default is 0.
* @param y - The number of pixels to resize the height. Default is 0.
* @param x - The number of pixels to resize the width.
* @param y - The number of pixels to resize the height.
*/
resize(x = 0, y = 0) {
resize(x: number, y: number) {
x = x || 0;
y = y || 0;

this._resizeStart();
this._resizeMove(0, 0);
this._resizeMove(-x + RESIZE_HANDLE_SIZE, -y);
Expand Down

0 comments on commit c2cf676

Please sign in to comment.