@websy/websy-designs 1.3.10 → 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,11 +6098,11 @@ 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 <
|
|
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
|
|
6103
6104
|
this.sizes.totalWidth = 0
|
|
6104
|
-
this.sizes.totalNonPinnedWidth = 0
|
|
6105
|
-
let equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
|
|
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) {
|
package/dist/websy-designs.js
CHANGED
|
@@ -6633,13 +6633,12 @@ 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 <
|
|
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;
|
|
6640
6640
|
this.sizes.totalWidth = 0;
|
|
6641
6641
|
this.sizes.totalNonPinnedWidth = 0;
|
|
6642
|
-
var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6643
6642
|
this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {
|
|
6644
6643
|
// if (!c.width) {
|
|
6645
6644
|
// if (c.actualWidth < equalWidth) {
|