@websy/websy-designs 1.3.11 → 1.3.12
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.
|
@@ -6098,9 +6098,9 @@ class WebsyTable3 {
|
|
|
6098
6098
|
})
|
|
6099
6099
|
this.sizes.totalWidth = this.options.columns[this.options.columns.length - 1].reduce((a, b) => a + (b.width || b.actualWidth), 0)
|
|
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
|
-
const outerSize = outerEl.getBoundingClientRect()
|
|
6102
|
-
if (this.sizes.totalWidth <
|
|
6103
|
-
let equalWidth = (
|
|
6101
|
+
// const outerSize = outerEl.getBoundingClientRect()
|
|
6102
|
+
if (this.sizes.totalWidth < this.sizes.outer.width) {
|
|
6103
|
+
let equalWidth = (this.sizes.outer.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
|
|
6104
6104
|
this.sizes.totalWidth = 0
|
|
6105
6105
|
this.sizes.totalNonPinnedWidth = 0
|
|
6106
6106
|
this.options.columns[this.options.columns.length - 1].forEach((c, i) => {
|
package/dist/websy-designs.js
CHANGED
|
@@ -6633,11 +6633,10 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6633
6633
|
return i >= _this40.pinnedColumns;
|
|
6634
6634
|
}).reduce(function (a, b) {
|
|
6635
6635
|
return a + (b.width || b.actualWidth);
|
|
6636
|
-
}, 0);
|
|
6637
|
-
var outerSize = outerEl.getBoundingClientRect();
|
|
6636
|
+
}, 0); // const outerSize = outerEl.getBoundingClientRect()
|
|
6638
6637
|
|
|
6639
|
-
if (this.sizes.totalWidth <
|
|
6640
|
-
var equalWidth = (
|
|
6638
|
+
if (this.sizes.totalWidth < this.sizes.outer.width) {
|
|
6639
|
+
var equalWidth = (this.sizes.outer.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6641
6640
|
this.sizes.totalWidth = 0;
|
|
6642
6641
|
this.sizes.totalNonPinnedWidth = 0;
|
|
6643
6642
|
this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {
|