@syncfusion/ej2-layouts 21.2.6 → 21.2.9

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.
@@ -1809,6 +1809,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1809
1809
  if (this.paneSettings[i].size === '') {
1810
1810
  flexPaneCount = flexPaneCount + 1;
1811
1811
  }
1812
+ else if (this.allPanes[i].style.flexBasis !== '') {
1813
+ this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
1814
+ }
1812
1815
  }
1813
1816
  var allFlexiblePanes = flexPaneCount === this.allPanes.length;
1814
1817
  // Two flexible Pane Case.
@@ -3006,7 +3009,12 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3006
3009
  this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
3007
3010
  }
3008
3011
  this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
3009
- this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
3012
+ if (this.handleClass.indexOf('west') >= 0) {
3013
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col - 1) * this.cellSpacing[0])) + 'px';
3014
+ }
3015
+ else {
3016
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
3017
+ }
3010
3018
  this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
3011
3019
  this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
3012
3020
  if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
@@ -3023,6 +3031,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3023
3031
  };
3024
3032
  this.setAttributes(value, el);
3025
3033
  this.mainElement = el;
3034
+ this.checkCollision = [];
3026
3035
  this.updatePanelLayout(el, this.getCellInstance(el.id));
3027
3036
  this.updateOldRowColumn();
3028
3037
  this.sortedPanel();
@@ -3103,12 +3112,11 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3103
3112
  return item;
3104
3113
  };
3105
3114
  DashboardLayout.prototype.pixelsToColumns = function (pixels, isCeil) {
3106
- var curColWidth = this.cellSize[0];
3107
3115
  if (isCeil) {
3108
- return Math.ceil(pixels / curColWidth);
3116
+ return Math.ceil(pixels / this.cellSize[0]);
3109
3117
  }
3110
3118
  else {
3111
- return Math.floor(pixels / curColWidth);
3119
+ return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
3112
3120
  }
3113
3121
  };
3114
3122
  DashboardLayout.prototype.pixelsToRows = function (pixels, isCeil) {