We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ad345 commit 89eee3dCopy full SHA for 89eee3d
src/components/gridView/index.tsx
@@ -181,7 +181,7 @@ class GridView extends UIComponent<GridViewProps, GridViewState> {
181
182
const {numColumns = DEFAULT_NUM_COLUMNS} = this.state;
183
const itemsCount = _.size(items);
184
- const rowCount = itemsCount / numColumns;
+ const rowCount = Math.ceil(itemsCount / numColumns);
185
const isLastItemInRow = (index + 1) % numColumns === 0;
186
const isLastRow = index + 1 > (rowCount - 1) * numColumns;
187
const isLastItem = index === itemsCount - 1;
0 commit comments