trotl-table 1.0.85 → 1.0.87

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.
package/dist/Table.esm.js CHANGED
@@ -11249,6 +11249,9 @@ function TableInner({
11249
11249
  const rowHeightGetter = ({
11250
11250
  index
11251
11251
  }) => tableDataFlat[index]?.type === "group" ? groupHeaderHeight : rowHeight;
11252
+ const tableHeight = tableDataFlat.reduce((height, _, index) => height + rowHeightGetter({
11253
+ index
11254
+ }), 0);
11252
11255
 
11253
11256
  // Table-level drop target only when using external DnD context
11254
11257
  const tableContainerRef = useRef(null);
@@ -11346,7 +11349,10 @@ function TableInner({
11346
11349
  title: translate("action")
11347
11350
  }, "\u2699\uFE0F") : translate("action")))), /*#__PURE__*/React__default.createElement("div", {
11348
11351
  className: "main-table",
11349
- ref: listRef
11352
+ ref: listRef,
11353
+ style: tableDataFlat.length > 0 ? {
11354
+ height: tableHeight
11355
+ } : undefined
11350
11356
  }, tableDataFlat.length === 0 && !loadingTimeoutReached ? /*#__PURE__*/React__default.createElement(DotsLoading, null) : tableDataFlat.length === 0 && loadingTimeoutReached ? /*#__PURE__*/React__default.createElement("div", {
11351
11357
  className: "table-empty",
11352
11358
  style: {