You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
putJsonDetailsWithoutElement("Elements in a grid are not aligned properly.");
557
+
if (mapSize != rows) {
558
+
putJsonDetailsWithoutElement("Elements in a grid are not aligned properly. Looks like grid has wrong amount of rows. Expected is " + rows + ". Actual is " + mapSize + "");
557
559
}
558
560
}
559
561
560
562
if (columns > 0) {
561
563
introwCount = 1;
562
564
for (Map.Entry<Integer, AtomicLong> entry : map.entrySet()) {
563
-
if (rowCount <= map.size()) {
564
-
if (entry.getValue().intValue() != columns) {
565
-
putJsonDetailsWithoutElement("Elements in a grid are not aligned properly in row #" + rowCount + ".");
565
+
if (rowCount <= mapSize) {
566
+
intactualInARow = entry.getValue().intValue();
567
+
if (actualInARow != columns) {
568
+
putJsonDetailsWithoutElement("Elements in a grid are not aligned properly in row #" + rowCount + ". Expected " + columns + " elements in a row. Actually it's " + actualInARow + "");
566
569
}
567
570
rowCount++;
568
571
}
569
572
}
570
-
} else {
571
-
if (map.size() == rootElements.size()) {
572
-
putJsonDetailsWithoutElement("Elements are not aligned in a grid.");
573
-
}
574
573
}
574
+
// else {
575
+
// if (map.size() == rootElements.size()) {
576
+
// putJsonDetailsWithoutElement("Elements are not aligned in a grid.");
0 commit comments