We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66c7ce2 + 27505b6 commit 8817db4Copy full SHA for 8817db4
index.js
@@ -29,8 +29,8 @@ module.exports = function (options) {
29
return state &&
30
Number.isInteger(state.x) &&
31
Number.isInteger(state.y) &&
32
- Number.isInteger(state.width) &&
33
- Number.isInteger(state.height);
+ Number.isInteger(state.width) && state.width > 0 &&
+ Number.isInteger(state.height) && state.height > 0;
34
}
35
36
function validateState() {
0 commit comments