@ninebone/table 0.0.689 → 0.0.691
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/nine-table.js
CHANGED
|
@@ -213,9 +213,7 @@ const Me = class Me extends HTMLElement {
|
|
|
213
213
|
d(this, xt, 0);
|
|
214
214
|
E(this, "refresh", /* @__PURE__ */ h(() => {
|
|
215
215
|
if (R.log("vscrollbar.refresh"), !t(this, F) || !t(this, k)) return;
|
|
216
|
-
const e = t(this, k).container, s = t(this, k).track, i = t(this, k).thumb, n = e.clientHeight, o = t(this, F).data.length, a = t(this, ot).getRowHeight();
|
|
217
|
-
R.log(t(this, k));
|
|
218
|
-
const c = o * a;
|
|
216
|
+
const e = t(this, k).container, s = t(this, k).track, i = t(this, k).thumb, n = e.clientHeight, o = t(this, F).data.length, a = t(this, ot).getRowHeight(), c = o * a;
|
|
219
217
|
if (c <= n || o === 0) {
|
|
220
218
|
this.style.display = "none";
|
|
221
219
|
return;
|
|
@@ -226,6 +224,7 @@ const Me = class Me extends HTMLElement {
|
|
|
226
224
|
const f = Math.max(Math.min(l * (n / c), l), 20);
|
|
227
225
|
i.style.height = `${f}px`;
|
|
228
226
|
const g = e.scrollTop, b = Math.max(c - n, 1);
|
|
227
|
+
R.log(e, g, b);
|
|
229
228
|
let u = 0;
|
|
230
229
|
b > 0 && (u = g / b * (l - f));
|
|
231
230
|
const v = l - f;
|