for (int r = 0; r < rows; r++) { width = Spring.max(width, getConstraintsForCell(r, c, parent, cols). getWidth()); getConstraintsForCell(r, c, parent, cols); constraints.setX(x); constraints.setWidth(width); for (int c = 0; c < cols; c++) { height = Spring.max(height, getConstraintsForCell(r, c, parent, cols). getHeight()); getConstraintsForCell(r, c, parent, cols); constraints.setY(y); constraints.setHeight(height);