@galaxy-io/dls 1.5.13 → 1.5.14
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.
|
@@ -129,7 +129,7 @@ function InfiniteSpreadsheet(props) {
|
|
|
129
129
|
const showEmpty = totalRowCount === 0 && !isLoading && !isError && Boolean(contentWhenEmpty);
|
|
130
130
|
const showRows = !showLoading && !showError && !showEmpty;
|
|
131
131
|
const trailingLoadingHeight = isFetchingNextPage ? loadingRowCount * rowHeight : 0;
|
|
132
|
-
const statusAvailableHeight = viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
132
|
+
const statusAvailableHeight = (height !== void 0 || Boolean(fillHeight)) && viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
133
133
|
const columnCount = columns.length + (showActionColumn ? 1 : 0);
|
|
134
134
|
return /* @__PURE__ */ jsx(TableOuterContainer, {
|
|
135
135
|
$width: width,
|
|
@@ -288,7 +288,7 @@ function InfiniteTable(props) {
|
|
|
288
288
|
const showLoading = isLoading && rows.length === 0;
|
|
289
289
|
const showError = isError && rows.length === 0;
|
|
290
290
|
const showEmpty = rows.length === 0 && !isLoading && !isError && Boolean(contentWhenEmpty);
|
|
291
|
-
const statusAvailableHeight = viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
291
|
+
const statusAvailableHeight = (height !== void 0 || minHeight !== void 0 || maxHeight !== void 0 || Boolean(fillHeight)) && viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
292
292
|
return /* @__PURE__ */ jsx(TableOuterContainer, {
|
|
293
293
|
$width: width,
|
|
294
294
|
$height: height,
|
|
@@ -125,7 +125,7 @@ function VirtualizedInfiniteTable(props) {
|
|
|
125
125
|
const showError = isError && totalRowCount === 0;
|
|
126
126
|
const showEmpty = totalRowCount === 0 && !isLoading && !isError && Boolean(contentWhenEmpty);
|
|
127
127
|
const showRows = !showLoading && !showError && !showEmpty;
|
|
128
|
-
const statusAvailableHeight = viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
128
|
+
const statusAvailableHeight = (height !== void 0 || minHeight !== void 0 || maxHeight !== void 0 || Boolean(fillHeight)) && viewportHeight !== void 0 ? Math.max(0, viewportHeight - (headerHeight ?? 0)) : void 0;
|
|
129
129
|
const virtualTotalSize = virtualizer.getTotalSize();
|
|
130
130
|
const trailingLoadingHeight = isFetchingNextPage ? loadingRowCount * rowHeight : 0;
|
|
131
131
|
return /* @__PURE__ */ jsx(TableOuterContainer, {
|