@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.
|
@@ -5733,11 +5733,11 @@ class WebsyTable3 {
|
|
|
5733
5733
|
})
|
|
5734
5734
|
this.sizes.totalWidth = this.options.columns[this.options.columns.length - 1].reduce((a, b) => a + (b.width || b.actualWidth), 0)
|
|
5735
5735
|
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)
|
|
5736
|
-
const outerSize = outerEl.getBoundingClientRect()
|
|
5737
|
-
if (this.sizes.totalWidth <
|
|
5736
|
+
// const outerSize = outerEl.getBoundingClientRect()
|
|
5737
|
+
if (this.sizes.totalWidth < this.sizes.outer.width) {
|
|
5738
|
+
let equalWidth = (this.sizes.outer.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
|
|
5738
5739
|
this.sizes.totalWidth = 0
|
|
5739
|
-
this.sizes.totalNonPinnedWidth = 0
|
|
5740
|
-
let equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
|
|
5740
|
+
this.sizes.totalNonPinnedWidth = 0
|
|
5741
5741
|
this.options.columns[this.options.columns.length - 1].forEach((c, i) => {
|
|
5742
5742
|
// if (!c.width) {
|
|
5743
5743
|
// if (c.actualWidth < equalWidth) {
|
|
@@ -6221,13 +6221,12 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6221
6221
|
return i >= _this37.pinnedColumns;
|
|
6222
6222
|
}).reduce(function (a, b) {
|
|
6223
6223
|
return a + (b.width || b.actualWidth);
|
|
6224
|
-
}, 0);
|
|
6225
|
-
var outerSize = outerEl.getBoundingClientRect();
|
|
6224
|
+
}, 0); // const outerSize = outerEl.getBoundingClientRect()
|
|
6226
6225
|
|
|
6227
|
-
if (this.sizes.totalWidth <
|
|
6226
|
+
if (this.sizes.totalWidth < this.sizes.outer.width) {
|
|
6227
|
+
var equalWidth = (this.sizes.outer.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6228
6228
|
this.sizes.totalWidth = 0;
|
|
6229
6229
|
this.sizes.totalNonPinnedWidth = 0;
|
|
6230
|
-
var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
|
|
6231
6230
|
this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {
|
|
6232
6231
|
// if (!c.width) {
|
|
6233
6232
|
// if (c.actualWidth < equalWidth) {
|