Skip to content
Snippets Groups Projects

Resolve "Bug: positionAllowed allows fields outside the grid"

Merged Julian requested to merge 10-bug-positionallowed-allows-fields-outside-the-grid into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -144,7 +144,7 @@ export default {
@@ -144,7 +144,7 @@ export default {
},
},
methods: {
methods: {
positionAllowed(x, y, key) {
positionAllowed(x, y, key) {
if (x <=0 || y <= 0) return false;
if (x <= 0 || y <= 0) return false;
if (x > this.cols) return false;
if (x > this.cols) return false;
if (y > this.rows) return false;
if (y > this.rows) return false;
Loading