pixelize-design-library 2.2.189 → 2.2.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -247,6 +247,7 @@ var KanbanBoard = function (_a) {
|
|
|
247
247
|
return changed ? pruned : prev;
|
|
248
248
|
});
|
|
249
249
|
}, [columns]);
|
|
250
|
+
var DEFAULT_ITEM_HEIGHT = 130;
|
|
250
251
|
// update height for an item
|
|
251
252
|
var setSize = (0, react_1.useCallback)(function (index, size, colId) {
|
|
252
253
|
var key = "".concat(colId, "-").concat(index);
|
|
@@ -257,12 +258,12 @@ var KanbanBoard = function (_a) {
|
|
|
257
258
|
return __assign(__assign({}, prev), (_a = {}, _a[key] = size, _a));
|
|
258
259
|
});
|
|
259
260
|
if (listRefs.current[colId]) {
|
|
260
|
-
listRefs.current[colId].resetAfterIndex(
|
|
261
|
+
listRefs.current[colId].resetAfterIndex(0);
|
|
261
262
|
}
|
|
262
263
|
}, []);
|
|
263
264
|
var getItemSize = (0, react_1.useCallback)(function (index, _items, colId) {
|
|
264
265
|
var key = "".concat(colId, "-").concat(index);
|
|
265
|
-
return (sizes[key] ||
|
|
266
|
+
return (sizes[key] || DEFAULT_ITEM_HEIGHT) + 12;
|
|
266
267
|
}, [sizes]);
|
|
267
268
|
// Calculate container height
|
|
268
269
|
(0, react_1.useEffect)(function () {
|