@syncfusion/ej2-layouts 21.2.3 → 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.
@@ -341,7 +341,7 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
341
341
  var prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
342
342
  var nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
343
343
  var splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
344
- if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
344
+ if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
345
345
  var previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
346
346
  var nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
347
347
  this.totalPercent = previousFlexBasis + nextFlexBasis;
@@ -1095,8 +1095,10 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1095
1095
  updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
1096
1096
  : (updatePaneOffset + sizeDiff) + 'px';
1097
1097
  var flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
1098
- flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1099
- this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1098
+ if (flexPane.style.flexBasis !== '') {
1099
+ flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
1100
+ this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
1101
+ }
1100
1102
  }
1101
1103
  }
1102
1104
  }
@@ -1807,6 +1809,9 @@ var Splitter = /** @__PURE__ @class */ (function (_super) {
1807
1809
  if (this.paneSettings[i].size === '') {
1808
1810
  flexPaneCount = flexPaneCount + 1;
1809
1811
  }
1812
+ else if (this.allPanes[i].style.flexBasis !== '') {
1813
+ this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
1814
+ }
1810
1815
  }
1811
1816
  var allFlexiblePanes = flexPaneCount === this.allPanes.length;
1812
1817
  // Two flexible Pane Case.
@@ -3004,7 +3009,12 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3004
3009
  this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
3005
3010
  }
3006
3011
  this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
3007
- 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
+ }
3008
3018
  this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
3009
3019
  this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
3010
3020
  if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
@@ -3021,6 +3031,7 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3021
3031
  };
3022
3032
  this.setAttributes(value, el);
3023
3033
  this.mainElement = el;
3034
+ this.checkCollision = [];
3024
3035
  this.updatePanelLayout(el, this.getCellInstance(el.id));
3025
3036
  this.updateOldRowColumn();
3026
3037
  this.sortedPanel();
@@ -3101,12 +3112,11 @@ var DashboardLayout = /** @__PURE__ @class */ (function (_super) {
3101
3112
  return item;
3102
3113
  };
3103
3114
  DashboardLayout.prototype.pixelsToColumns = function (pixels, isCeil) {
3104
- var curColWidth = this.cellSize[0];
3105
3115
  if (isCeil) {
3106
- return Math.ceil(pixels / curColWidth);
3116
+ return Math.ceil(pixels / this.cellSize[0]);
3107
3117
  }
3108
3118
  else {
3109
- return Math.floor(pixels / curColWidth);
3119
+ return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
3110
3120
  }
3111
3121
  };
3112
3122
  DashboardLayout.prototype.pixelsToRows = function (pixels, isCeil) {