@websy/websy-designs 1.9.1 → 1.9.2
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/websy-designs-es6.debug.js +13 -0
- package/dist/websy-designs-es6.js +13 -0
- package/dist/websy-designs-es6.min.js +1 -1
- package/dist/websy-designs.debug.js +13 -0
- package/dist/websy-designs.js +13 -0
- package/dist/websy-designs.min.css +1 -1
- package/dist/websy-designs.min.js +1 -1
- package/package.json +1 -1
|
@@ -6931,6 +6931,13 @@ class WebsyTable3 {
|
|
|
6931
6931
|
// bodyEl.style.height = `calc(100% - ${this.sizes.header.height}px - ${this.sizes.total.height}px)`
|
|
6932
6932
|
// }
|
|
6933
6933
|
bodyEl.style.height = `${this.sizes.bodyHeight}px`
|
|
6934
|
+
if (this.isTouchDevice === true) {
|
|
6935
|
+
let touchScrollEl = document.getElementById(`${this.elementId}_touchScroller`)
|
|
6936
|
+
if (touchScrollEl) {
|
|
6937
|
+
touchScrollEl.style.top = `${this.sizes.header.height}px`
|
|
6938
|
+
touchScrollEl.style.height = `calc(100% - ${this.sizes.header.height + 30}px)`
|
|
6939
|
+
}
|
|
6940
|
+
}
|
|
6934
6941
|
if (this.options.virtualScroll === true) {
|
|
6935
6942
|
// set the scroll element positions
|
|
6936
6943
|
let vScrollEl = document.getElementById(`${this.elementId}_vScrollContainer`)
|
|
@@ -6938,6 +6945,9 @@ class WebsyTable3 {
|
|
|
6938
6945
|
if (this.vScrollRequired === true) {
|
|
6939
6946
|
vScrollEl.style.top = `${this.sizes.header.height + this.sizes.total.height}px`
|
|
6940
6947
|
vScrollEl.style.height = `${this.sizes.bodyHeight}px`
|
|
6948
|
+
if (this.isTouchDevice === true) {
|
|
6949
|
+
vScrollEl.style.visibility = `unset`
|
|
6950
|
+
}
|
|
6941
6951
|
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px'
|
|
6942
6952
|
const scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height
|
|
6943
6953
|
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * (scrollableSpace)) + 'px'
|
|
@@ -6951,6 +6961,9 @@ class WebsyTable3 {
|
|
|
6951
6961
|
hScrollEl.style.left = `${this.sizes.table.width - this.sizes.scrollableWidth}px`
|
|
6952
6962
|
hScrollEl.style.width = `${this.sizes.scrollableWidth - (this.isTouchDevice ? 30 : 20)}px`
|
|
6953
6963
|
hHandleEl.style.width = Math.max(this.options.minHandleSize, this.sizes.scrollableWidth * (this.sizes.scrollableWidth / this.sizes.totalNonPinnedWidth)) + 'px'
|
|
6964
|
+
if (this.isTouchDevice === true) {
|
|
6965
|
+
hScrollEl.style.visibility = `unset`
|
|
6966
|
+
}
|
|
6954
6967
|
}
|
|
6955
6968
|
else {
|
|
6956
6969
|
hHandleEl.style.width = '0px'
|
|
@@ -6635,6 +6635,13 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6635
6635
|
// bodyEl.style.height = `calc(100% - ${this.sizes.header.height}px - ${this.sizes.total.height}px)`
|
|
6636
6636
|
// }
|
|
6637
6637
|
bodyEl.style.height = "".concat(this.sizes.bodyHeight, "px");
|
|
6638
|
+
if (this.isTouchDevice === true) {
|
|
6639
|
+
var touchScrollEl = document.getElementById("".concat(this.elementId, "_touchScroller"));
|
|
6640
|
+
if (touchScrollEl) {
|
|
6641
|
+
touchScrollEl.style.top = "".concat(this.sizes.header.height, "px");
|
|
6642
|
+
touchScrollEl.style.height = "calc(100% - ".concat(this.sizes.header.height + 30, "px)");
|
|
6643
|
+
}
|
|
6644
|
+
}
|
|
6638
6645
|
if (this.options.virtualScroll === true) {
|
|
6639
6646
|
// set the scroll element positions
|
|
6640
6647
|
var vScrollEl = document.getElementById("".concat(this.elementId, "_vScrollContainer"));
|
|
@@ -6642,6 +6649,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6642
6649
|
if (this.vScrollRequired === true) {
|
|
6643
6650
|
vScrollEl.style.top = "".concat(this.sizes.header.height + this.sizes.total.height, "px");
|
|
6644
6651
|
vScrollEl.style.height = "".concat(this.sizes.bodyHeight, "px");
|
|
6652
|
+
if (this.isTouchDevice === true) {
|
|
6653
|
+
vScrollEl.style.visibility = "unset";
|
|
6654
|
+
}
|
|
6645
6655
|
vHandleEl.style.height = Math.max(this.options.minHandleSize, this.sizes.bodyHeight * (this.sizes.rowsToRenderPrecise / this.totalRowCount)) + 'px';
|
|
6646
6656
|
var scrollableSpace = vScrollEl.getBoundingClientRect().height - vHandleEl.getBoundingClientRect().height;
|
|
6647
6657
|
vHandleEl.style.top = Math.round(this.startRow / (this.totalRowCount - this.sizes.rowsToRender) * scrollableSpace) + 'px';
|
|
@@ -6654,6 +6664,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6654
6664
|
hScrollEl.style.left = "".concat(this.sizes.table.width - this.sizes.scrollableWidth, "px");
|
|
6655
6665
|
hScrollEl.style.width = "".concat(this.sizes.scrollableWidth - (this.isTouchDevice ? 30 : 20), "px");
|
|
6656
6666
|
hHandleEl.style.width = Math.max(this.options.minHandleSize, this.sizes.scrollableWidth * (this.sizes.scrollableWidth / this.sizes.totalNonPinnedWidth)) + 'px';
|
|
6667
|
+
if (this.isTouchDevice === true) {
|
|
6668
|
+
hScrollEl.style.visibility = "unset";
|
|
6669
|
+
}
|
|
6657
6670
|
} else {
|
|
6658
6671
|
hHandleEl.style.width = '0px';
|
|
6659
6672
|
}
|