@ninebone/table 0.0.685 → 0.0.686

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.
@@ -438,15 +438,14 @@ const Ie = class Ie {
438
438
  (a === "none" || window.getComputedStyle(o).display === "none") && (o.style.display = "block", o.style.visibility = "hidden", o.style.position = "absolute");
439
439
  let f = 0;
440
440
  const u = s.querySelectorAll("tr");
441
- if (u.forEach((b) => {
441
+ return u.forEach((b) => {
442
442
  let g = b.offsetHeight || b.getBoundingClientRect().height;
443
443
  if (g === 0) {
444
444
  const v = window.getComputedStyle(b);
445
445
  g = parseFloat(v.height) || parseFloat(v.minHeight) || 0;
446
446
  }
447
447
  f += g;
448
- }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, f <= 0) throw new Error("#measureAndCacheHeight() invalid dom");
449
- return y(this, M, f), t(this, At).call(this), t(this, M);
448
+ }), u.forEach((b) => b.remove()), o.style.display = a, o.style.visibility = c, o.style.position = l, f <= 0 ? -1 : (y(this, M, f), t(this, At).call(this), t(this, M));
450
449
  }, "#measureAndCacheHeight"));
451
450
  d(this, Et, /* @__PURE__ */ h(() => {
452
451
  R.log("rowManager.#updateVirtualScrollHeight");