@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.
@@ -1780,6 +1780,9 @@ let Splitter = class Splitter extends Component {
1780
1780
  if (this.paneSettings[i].size === '') {
1781
1781
  flexPaneCount = flexPaneCount + 1;
1782
1782
  }
1783
+ else if (this.allPanes[i].style.flexBasis !== '') {
1784
+ this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
1785
+ }
1783
1786
  }
1784
1787
  const allFlexiblePanes = flexPaneCount === this.allPanes.length;
1785
1788
  // Two flexible Pane Case.
@@ -2955,7 +2958,12 @@ let DashboardLayout = class DashboardLayout extends Component {
2955
2958
  this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
2956
2959
  }
2957
2960
  this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
2958
- this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
2961
+ if (this.handleClass.indexOf('west') >= 0) {
2962
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col - 1) * this.cellSpacing[0])) + 'px';
2963
+ }
2964
+ else {
2965
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
2966
+ }
2959
2967
  this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
2960
2968
  this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
2961
2969
  if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
@@ -2972,6 +2980,7 @@ let DashboardLayout = class DashboardLayout extends Component {
2972
2980
  };
2973
2981
  this.setAttributes(value, el);
2974
2982
  this.mainElement = el;
2983
+ this.checkCollision = [];
2975
2984
  this.updatePanelLayout(el, this.getCellInstance(el.id));
2976
2985
  this.updateOldRowColumn();
2977
2986
  this.sortedPanel();
@@ -3052,12 +3061,11 @@ let DashboardLayout = class DashboardLayout extends Component {
3052
3061
  return item;
3053
3062
  }
3054
3063
  pixelsToColumns(pixels, isCeil) {
3055
- const curColWidth = this.cellSize[0];
3056
3064
  if (isCeil) {
3057
- return Math.ceil(pixels / curColWidth);
3065
+ return Math.ceil(pixels / this.cellSize[0]);
3058
3066
  }
3059
3067
  else {
3060
- return Math.floor(pixels / curColWidth);
3068
+ return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
3061
3069
  }
3062
3070
  }
3063
3071
  pixelsToRows(pixels, isCeil) {