@spectric/ui 0.0.19 → 0.0.20

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/index.es.js CHANGED
@@ -4812,11 +4812,11 @@ let et = class extends ve {
4812
4812
  return this;
4813
4813
  }
4814
4814
  render() {
4815
- let e = this.data.length, t = 10, o = this.table.querySelector("spectric-table-header").clientHeight, s = this.table.querySelector(".table-wrapper"), n = Math.max(this.startIndex - t, 0);
4815
+ let e = this.data.length, t = 10, o = this.table.querySelector("spectric-table-header").clientHeight, s = this.table.querySelector(".table-wrapper"), n = Math.max(this.startIndex, 0);
4816
4816
  const r = Math.ceil((s.clientHeight - o) / this.rowHeight), c = Math.min(n + r + t, e), h = c - n;
4817
4817
  let d = e * this.rowHeight, m = n * this.rowHeight + (s.scrollTop - n * this.rowHeight);
4818
4818
  c === e && (m = n * this.rowHeight);
4819
- let A = h * this.rowHeight, y = d - m - A, C = this.startIndex != 0 ? $`
4819
+ let A = h * this.rowHeight, y = d - m - A, C = n != 0 ? $`
4820
4820
  <tr style="height:${m}px" class="virtual-scroll-spacer">
4821
4821
  <td colspan="${this.columns.length}"></td></tr>` : null, S = $`
4822
4822
  <tr style="height:${y}px" class="virtual-scroll-spacer">