@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.
- package/CHANGELOG.md +20 -0
- package/dist/ej2-layouts.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js +2 -2
- package/dist/ej2-layouts.umd.min.js.map +1 -1
- package/dist/es6/ej2-layouts.es2015.js +17 -7
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +17 -7
- package/dist/es6/ej2-layouts.es5.js.map +1 -1
- package/dist/global/ej2-layouts.min.js +2 -2
- package/dist/global/ej2-layouts.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -7
- package/src/dashboard-layout/dashboard-layout.js +9 -4
- package/src/splitter/splitter.js +8 -3
@@ -320,7 +320,7 @@ let Splitter = class Splitter extends Component {
|
|
320
320
|
const prePaneSize = this.orientation === 'Horizontal' ? this.previousPane.offsetWidth : this.previousPane.offsetHeight;
|
321
321
|
const nextPaneSize = this.orientation === 'Horizontal' ? this.nextPane.offsetWidth : this.nextPane.offsetHeight;
|
322
322
|
const splitBarSize = isNullOrUndefined(this.separatorSize) ? BAR_SIZE_DEFAULT : this.separatorSize;
|
323
|
-
if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
|
323
|
+
if ((this.previousPane.style.flexBasis.indexOf('%') > 0 || this.previousPane.style.flexBasis.indexOf('p') > 0 || this.nextPane.style.flexBasis.indexOf('%') > 0)) {
|
324
324
|
const previousFlexBasis = this.updatePaneFlexBasis(this.previousPane);
|
325
325
|
const nextFlexBasis = this.updatePaneFlexBasis(this.nextPane);
|
326
326
|
this.totalPercent = previousFlexBasis + nextFlexBasis;
|
@@ -1071,8 +1071,10 @@ let Splitter = class Splitter extends Component {
|
|
1071
1071
|
updatePane.style.flexBasis = isPercent ? this.convertPixelToPercentage(updatePaneOffset + sizeDiff) + '%'
|
1072
1072
|
: (updatePaneOffset + sizeDiff) + 'px';
|
1073
1073
|
const flexPaneOffset = this.orientation === 'Horizontal' ? flexPane.offsetWidth : flexPane.offsetHeight;
|
1074
|
-
flexPane.style.flexBasis
|
1075
|
-
|
1074
|
+
if (flexPane.style.flexBasis !== '') {
|
1075
|
+
flexPane.style.flexBasis = flexPane.style.flexBasis.indexOf('%') > -1 ?
|
1076
|
+
this.convertPixelToPercentage(flexPaneOffset - sizeDiff) + '%' : (flexPaneOffset - sizeDiff) + 'px';
|
1077
|
+
}
|
1076
1078
|
}
|
1077
1079
|
}
|
1078
1080
|
}
|
@@ -1778,6 +1780,9 @@ let Splitter = class Splitter extends Component {
|
|
1778
1780
|
if (this.paneSettings[i].size === '') {
|
1779
1781
|
flexPaneCount = flexPaneCount + 1;
|
1780
1782
|
}
|
1783
|
+
else if (this.allPanes[i].style.flexBasis !== '') {
|
1784
|
+
this.paneSettings[i].size = this.allPanes[i].style.flexBasis;
|
1785
|
+
}
|
1781
1786
|
}
|
1782
1787
|
const allFlexiblePanes = flexPaneCount === this.allPanes.length;
|
1783
1788
|
// Two flexible Pane Case.
|
@@ -2953,7 +2958,12 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
2953
2958
|
this.panelPropertyChange(item, { sizeX: item.sizeX - 1 });
|
2954
2959
|
}
|
2955
2960
|
this.shadowEle.style.top = ((item.row * this.getCellSize()[1] + (item.row * this.cellSpacing[1]))) + 'px';
|
2956
|
-
|
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
|
+
}
|
2957
2967
|
this.shadowEle.style.height = ((item.sizeY * (this.getCellSize()[1] + (this.cellSpacing[1])))) + 'px';
|
2958
2968
|
this.shadowEle.style.width = ((item.sizeX * (this.getCellSize()[0] + (this.cellSpacing[0])))) + 'px';
|
2959
2969
|
if (oldSizeX !== item.sizeX || oldSizeY !== item.sizeY) {
|
@@ -2970,6 +2980,7 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
2970
2980
|
};
|
2971
2981
|
this.setAttributes(value, el);
|
2972
2982
|
this.mainElement = el;
|
2983
|
+
this.checkCollision = [];
|
2973
2984
|
this.updatePanelLayout(el, this.getCellInstance(el.id));
|
2974
2985
|
this.updateOldRowColumn();
|
2975
2986
|
this.sortedPanel();
|
@@ -3050,12 +3061,11 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
3050
3061
|
return item;
|
3051
3062
|
}
|
3052
3063
|
pixelsToColumns(pixels, isCeil) {
|
3053
|
-
const curColWidth = this.cellSize[0];
|
3054
3064
|
if (isCeil) {
|
3055
|
-
return Math.ceil(pixels /
|
3065
|
+
return Math.ceil(pixels / this.cellSize[0]);
|
3056
3066
|
}
|
3057
3067
|
else {
|
3058
|
-
return Math.floor(pixels /
|
3068
|
+
return Math.floor(pixels / (this.cellSize[0] + this.cellSpacing[0]));
|
3059
3069
|
}
|
3060
3070
|
}
|
3061
3071
|
pixelsToRows(pixels, isCeil) {
|