@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.2.6
3
+ * version : 21.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-layouts@*",
3
- "_id": "@syncfusion/ej2-layouts@21.2.3",
3
+ "_id": "@syncfusion/ej2-layouts@21.2.6",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-5Y1k2bCEewBOxotcUlKSaK1QQe62BJyxVGfBiHjvcrW6ul8xbyw9fjrJ39BKPeP0yRQ2oc8x2hT04MzbPv6Hcw==",
5
+ "_integrity": "sha512-oPRVnc4Y6GJ/EgKsDQT3KHvSjYdFBECeXE6zUvOBXRwJje/TDkTOrypx90XOgQ+8t0+VtC6y8+8wmzwKxiZepA==",
6
6
  "_location": "/@syncfusion/ej2-layouts",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,8 +27,8 @@
27
27
  "/@syncfusion/ej2-react-layouts",
28
28
  "/@syncfusion/ej2-vue-layouts"
29
29
  ],
30
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-21.2.3.tgz",
31
- "_shasum": "cb31dfc8902d90e3f641ab42286a5e21c8fb6e0a",
30
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-layouts/-/ej2-layouts-21.2.6.tgz",
31
+ "_shasum": "dcd35ff989ae0708599b9728a48dea1d72604726",
32
32
  "_spec": "@syncfusion/ej2-layouts@*",
33
33
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
34
34
  "author": {
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~21.2.3"
39
+ "@syncfusion/ej2-base": "~21.2.9"
40
40
  },
41
41
  "deprecated": false,
42
42
  "description": "A package of Essential JS 2 layout pure CSS components such as card and avatar. The card is used as small container to show content in specific structure, whereas the avatars are icons, initials or figures representing particular person.",
@@ -76,7 +76,7 @@
76
76
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/layouts"
77
77
  },
78
78
  "typings": "index.d.ts",
79
- "version": "21.2.6",
79
+ "version": "21.2.9",
80
80
  "sideEffects": false,
81
81
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
82
82
  }
@@ -656,7 +656,12 @@ var DashboardLayout = /** @class */ (function (_super) {
656
656
  this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
657
657
  }
658
658
  this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
659
- this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
659
+ if (this.handleClass.indexOf('west') >= 0) {
660
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col - 1) * this.cellSpacing[0])) + 'px';
661
+ }
662
+ else {
663
+ this.shadowEle.style.left = ((item.col * this.getCellSize()[0]) + ((item.col) * this.cellSpacing[0])) + 'px';
664
+ }
660
665
  this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
661
666
  this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
662
667
  if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
@@ -673,6 +678,7 @@ var DashboardLayout = /** @class */ (function (_super) {
673
678
  };
674
679
  this.setAttributes(value, el);
675
680
  this.mainElement = el;
681
+ this.checkCollision = [];
676
682
  this.updatePanelLayout(el, this.getCellInstance(el.id));
677
683
  this.updateOldRowColumn();
678
684
  this.sortedPanel();
@@ -753,12 +759,11 @@ var DashboardLayout = /** @class */ (function (_super) {
753
759
  return item;
754
760
  };
755
761
  DashboardLayout.prototype.pixelsToColumns = function (pixels, isCeil) {
756
- var curColWidth = this.cellSize[0];
757
762
  if (isCeil) {
758
- return Math.ceil(pixels / curColWidth);
763
+ return Math.ceil(pixels / this.cellSize[0]);
759
764
  }
760
765
  else {
761
- return Math.floor(pixels / curColWidth);
766
+ return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
762
767
  }
763
768
  };
764
769
  DashboardLayout.prototype.pixelsToRows = function (pixels, isCeil) {
@@ -1812,6 +1812,9 @@ var Splitter = /** @class */ (function (_super) {
1812
1812
  if (this.paneSettings[i].size === '') {
1813
1813
  flexPaneCount = flexPaneCount + 1;
1814
1814
  }
1815
+ else if (this.allPanes[i].style.flexBasis !== '') {
1816
+ this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
1817
+ }
1815
1818
  }
1816
1819
  var allFlexiblePanes = flexPaneCount === this.allPanes.length;
1817
1820
  // Two flexible Pane Case.