@homebound/beam 2.96.2 → 2.96.3
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.
|
@@ -261,7 +261,7 @@ function renderVirtual(style, id, columns, headerRows, filteredRows, firstRowMes
|
|
|
261
261
|
const { paddingBottom, ...otherRootStyles } = (_a = style.rootCss) !== null && _a !== void 0 ? _a : {};
|
|
262
262
|
return { footerStyle: { paddingBottom }, listStyle: { ...style, rootCss: otherRootStyles } };
|
|
263
263
|
}, [style]);
|
|
264
|
-
return ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { ref: virtuosoRef, components: {
|
|
264
|
+
return ((0, jsx_runtime_1.jsx)(react_virtuoso_1.Virtuoso, { overscan: 5, ref: virtuosoRef, components: {
|
|
265
265
|
List: VirtualRoot(listStyle, columns, id, firstLastColumnWidth, xss),
|
|
266
266
|
Footer: () => (0, jsx_runtime_1.jsx)("div", { css: footerStyle }, void 0),
|
|
267
267
|
},
|
|
@@ -270,11 +270,11 @@ function renderVirtual(style, id, columns, headerRows, filteredRows, firstRowMes
|
|
|
270
270
|
const maybeContentsDiv = el.firstElementChild;
|
|
271
271
|
// If it is a chrome row, then we are not using `display: contents;`, return the height of this element.
|
|
272
272
|
if ("chrome" in maybeContentsDiv.dataset) {
|
|
273
|
-
return maybeContentsDiv.
|
|
273
|
+
return maybeContentsDiv.getBoundingClientRect().height || 1;
|
|
274
274
|
}
|
|
275
275
|
// Both the `Item` and `itemContent` use `display: contents`, so their height is 0,
|
|
276
276
|
// so instead drill into the 1st real content cell.
|
|
277
|
-
return maybeContentsDiv.firstElementChild.
|
|
277
|
+
return maybeContentsDiv.firstElementChild.getBoundingClientRect().height;
|
|
278
278
|
}, itemContent: (index) => {
|
|
279
279
|
// We keep header and filter rows separate, but react-virtuoso is a flat list,
|
|
280
280
|
// so we pick the right header / first row message / actual row.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebound/beam",
|
|
3
|
-
"version": "2.96.
|
|
3
|
+
"version": "2.96.3",
|
|
4
4
|
"author": "Homebound",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-router": "^5.2.0",
|
|
49
49
|
"react-router-dom": "^5.2.0",
|
|
50
50
|
"react-stately": "^3.9.0",
|
|
51
|
-
"react-virtuoso": "^
|
|
51
|
+
"react-virtuoso": "^2.3.1",
|
|
52
52
|
"tinycolor2": "^1.4.2",
|
|
53
53
|
"tributejs": "^5.1.3",
|
|
54
54
|
"trix": "^1.3.1",
|