@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.
@@ -6891,11 +6891,9 @@ class WebsyTable3 {
6891
6891
  if (this.vScrollRequired === true) {
6892
6892
  vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
6893
6893
  vScrollEl.style.height = `${this.sizes.bodyHeight}px`
6894
- vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
6895
- if (this.startRow !== 0) {
6896
- const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
6897
- vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
6898
- }
6894
+ vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
6895
+ const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
6896
+ vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
6899
6897
  }
6900
6898
  else {
6901
6899
  vHandleEl.style.height = '0px'
@@ -7560,11 +7560,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
7560
7560
  vScrollEl.style.top = "".concat(this.sizes.header.height + this.sizes.total.height, "px");
7561
7561
  vScrollEl.style.height = "".concat(this.sizes.bodyHeight, "px");
7562
7562
  vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px';
7563
-
7564
- if (this.startRow !== 0) {
7565
- var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
7566
- vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
7567
- }
7563
+ var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
7564
+ vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
7568
7565
  } else {
7569
7566
  vHandleEl.style.height = '0px';
7570
7567
  }