Skip to content

Commit

Permalink
fixed min rect handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Nölle committed May 12, 2022
1 parent 0329d8d commit 82b58da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/minSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export class MinimumSizeUtils {
return args;
const newArgs: Array<any> = Array.from(args);
if (transformedWidth < minWidth) {
newArgs[2] = width / widthFactor;
newArgs[2] = minWidth / widthFactor;
}
if (transformedHeight < minHeight) {
newArgs[3] = height / heightFactor;
newArgs[3] = minHeight / heightFactor;
}
return newArgs;
}
Expand Down

0 comments on commit 82b58da

Please sign in to comment.