@websy/websy-designs 1.3.9 → 1.3.11
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.
|
@@ -6100,9 +6100,9 @@ class WebsyTable3 {
|
|
|
6100
6100
|
this.sizes.totalNonPinnedWidth = this.options.columns[this.options.columns.length - 1].filter((c, i) => i >= this.pinnedColumns).reduce((a, b) => a + (b.width || b.actualWidth), 0)
|
|
6101
6101
|
const outerSize = outerEl.getBoundingClientRect()
|
|
6102
6102
|
if (this.sizes.totalWidth < outerSize.width) {
|
|
6103
|
-
this.sizes.totalWidth = 0
|
|
6104
|
-
this.sizes.totalNonPinnedWidth = 0
|
|
6105
6103
|
let equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
|
|
6104
|
+
this.sizes.totalWidth = 0
|
|
6105
|
+
this.sizes.totalNonPinnedWidth = 0
|
|
6106
6106
|
this.options.columns[this.options.columns.length - 1].forEach((c, i) => {
|
|
6107
6107
|
// if (!c.width) {
|
|
6108
6108
|
// if (c.actualWidth < equalWidth) {
|
|
@@ -6117,7 +6117,7 @@ class WebsyTable3 {
|
|
|
6117
6117
|
if (i < this.pinnedColumns) {
|
|
6118
6118
|
this.sizes.totalNonPinnedWidth += c.width || c.actualWidth
|
|
6119
6119
|
}
|
|
6120
|
-
equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
|
|
6120
|
+
// equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
|
|
6121
6121
|
})
|
|
6122
6122
|
}
|
|
6123
6123
|
// take the height of the last cell as the official height for data cells
|
package/dist/websy-designs.js
CHANGED
|
@@ -6637,9 +6637,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6637
6637
|
var outerSize = outerEl.getBoundingClientRect();
|
|
6638
6638
|
|
|
6639
6639
|
if (this.sizes.totalWidth < outerSize.width) {
|
|
6640
|
+
var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6640
6641
|
this.sizes.totalWidth = 0;
|
|
6641
6642
|
this.sizes.totalNonPinnedWidth = 0;
|
|
6642
|
-
var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6643
6643
|
this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {
|
|
6644
6644
|
// if (!c.width) {
|
|
6645
6645
|
// if (c.actualWidth < equalWidth) {
|
|
@@ -6655,9 +6655,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6655
6655
|
|
|
6656
6656
|
if (i < _this40.pinnedColumns) {
|
|
6657
6657
|
_this40.sizes.totalNonPinnedWidth += c.width || c.actualWidth;
|
|
6658
|
-
}
|
|
6658
|
+
} // equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
|
|
6659
6659
|
|
|
6660
|
-
equalWidth = (outerSize.width - _this40.sizes.totalWidth) / (_this40.options.columns[_this40.options.columns.length - 1].length - (i + 1));
|
|
6661
6660
|
});
|
|
6662
6661
|
} // take the height of the last cell as the official height for data cells
|
|
6663
6662
|
// this.sizes.dataCellHeight = this.options.columns[this.options.columns.length - 1].cellHeight
|