@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.
@@ -5735,9 +5735,9 @@ class WebsyTable3 {
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
5736
  const outerSize = outerEl.getBoundingClientRect()
5737
5737
  if (this.sizes.totalWidth < outerSize.width) {
5738
- this.sizes.totalWidth = 0
5739
- this.sizes.totalNonPinnedWidth = 0
5740
5738
  let equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length
5739
+ this.sizes.totalWidth = 0
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) {
@@ -5752,7 +5752,7 @@ class WebsyTable3 {
5752
5752
  if (i < this.pinnedColumns) {
5753
5753
  this.sizes.totalNonPinnedWidth += c.width || c.actualWidth
5754
5754
  }
5755
- equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
5755
+ // equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
5756
5756
  })
5757
5757
  }
5758
5758
  // take the height of the last cell as the official height for data cells
@@ -6225,9 +6225,9 @@ var WebsyTable3 = /*#__PURE__*/function () {
6225
6225
  var outerSize = outerEl.getBoundingClientRect();
6226
6226
 
6227
6227
  if (this.sizes.totalWidth < outerSize.width) {
6228
+ var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
6228
6229
  this.sizes.totalWidth = 0;
6229
6230
  this.sizes.totalNonPinnedWidth = 0;
6230
- var equalWidth = (outerSize.width - this.sizes.totalWidth) / this.options.columns[this.options.columns.length - 1].length;
6231
6231
  this.options.columns[this.options.columns.length - 1].forEach(function (c, i) {
6232
6232
  // if (!c.width) {
6233
6233
  // if (c.actualWidth < equalWidth) {
@@ -6243,9 +6243,8 @@ var WebsyTable3 = /*#__PURE__*/function () {
6243
6243
 
6244
6244
  if (i < _this37.pinnedColumns) {
6245
6245
  _this37.sizes.totalNonPinnedWidth += c.width || c.actualWidth;
6246
- }
6246
+ } // equalWidth = (outerSize.width - this.sizes.totalWidth) / (this.options.columns[this.options.columns.length - 1].length - (i + 1))
6247
6247
 
6248
- equalWidth = (outerSize.width - _this37.sizes.totalWidth) / (_this37.options.columns[_this37.options.columns.length - 1].length - (i + 1));
6249
6248
  });
6250
6249
  } // take the height of the last cell as the official height for data cells
6251
6250
  // this.sizes.dataCellHeight = this.options.columns[this.options.columns.length - 1].cellHeight