Browse Source

fix image grid

Bachir Soussi Chiadmi 3 years ago
parent
commit
55c2acd962
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/store/modules/project.js

+ 3 - 3
src/store/modules/project.js

@@ -180,11 +180,11 @@ export default {
       let cols = state.wall.nbrWinZ / state.contents_size_factor
       let t
       for (var m = 0; m < rows; m++) { // rows
-        if (m > rows / 4 * 3) {
+        if (m > rows / 4 * 3 + 1) {
           t = state.contentTypes[0]
-        } else if (m > rows / 4 * 2) {
+        } else if (m > rows / 4 * 2 + 1) {
           t = state.contentTypes[1]
-        } else if (m > rows / 4) {
+        } else if (m > rows / 4 + 1) {
           t = state.contentTypes[2]
         } else {
           t = state.contentTypes[3]