@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.
@@ -5733,9 +5733,9 @@ 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 < outerSize.width) {
5738
- let equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
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
5739
5739
  this.sizes.totalWidth = 0
5740
5740
  this.sizes.totalNonPinnedWidth = 0
5741
5741
  this.options.columns[this.options.columns.length - 1].forEach((c, i) => {
@@ -6221,11 +6221,10 @@ 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 < outerSize.width) {
6228
- var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
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;
6229
6228
  this.sizes.totalWidth = 0;
6230
6229
  this.sizes.totalNonPinnedWidth = 0;
6231
6230
  this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {