@websy/websy-designs 1.8.0 → 1.8.1
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.
|
@@ -7307,11 +7307,9 @@ class WebsyTable3 {
|
|
|
7307
7307
|
if (this.vScrollRequired === true) {
|
|
7308
7308
|
vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
|
|
7309
7309
|
vScrollEl.style.height = `${this.sizes.bodyHeight}px`
|
|
7310
|
-
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
7314
|
-
}
|
|
7310
|
+
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
7311
|
+
const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
|
|
7312
|
+
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
7315
7313
|
}
|
|
7316
7314
|
else {
|
|
7317
7315
|
vHandleEl.style.height = '0px'
|
package/dist/websy-designs.js
CHANGED
|
@@ -8042,11 +8042,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
8042
8042
|
vScrollEl.style.top = "".concat(this.sizes.header.height + this.sizes.total.height, "px");
|
|
8043
8043
|
vScrollEl.style.height = "".concat(this.sizes.bodyHeight, "px");
|
|
8044
8044
|
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px';
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
|
|
8048
|
-
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
|
|
8049
|
-
}
|
|
8045
|
+
var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
|
|
8046
|
+
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
|
|
8050
8047
|
} else {
|
|
8051
8048
|
vHandleEl.style.height = '0px';
|
|
8052
8049
|
}
|