@syncfusion/ej2-layouts 19.3.44 → 19.3.48
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 +2 -0
- 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 +12 -13
- package/dist/es6/ej2-layouts.es2015.js.map +1 -1
- package/dist/es6/ej2-layouts.es5.js +12 -13
- 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 +6 -6
- package/src/dashboard-layout/dashboard-layout.js +0 -5
- package/src/splitter/splitter.d.ts +4 -0
- package/src/splitter/splitter.js +12 -8
@@ -237,6 +237,10 @@ let Splitter = class Splitter extends Component {
|
|
237
237
|
}
|
238
238
|
preRender() {
|
239
239
|
this.onReportWindowSize = this.reportWindowSize.bind(this);
|
240
|
+
this.onMouseMoveHandler = this.onMouseMove.bind(this);
|
241
|
+
this.onMouseUpHandler = this.onMouseUp.bind(this);
|
242
|
+
this.onTouchMoveHandler = this.onMouseMove.bind(this);
|
243
|
+
this.onTouchEndHandler = this.onMouseUp.bind(this);
|
240
244
|
this.wrapper = this.element.cloneNode(true);
|
241
245
|
this.wrapperParent = this.element.parentElement;
|
242
246
|
removeClass([this.wrapper], ['e-control', 'e-lib', ROOT]);
|
@@ -1050,21 +1054,21 @@ let Splitter = class Splitter extends Component {
|
|
1050
1054
|
}
|
1051
1055
|
}
|
1052
1056
|
wireResizeEvents() {
|
1053
|
-
|
1054
|
-
|
1057
|
+
document.addEventListener('mousemove', this.onMouseMoveHandler, true);
|
1058
|
+
document.addEventListener('mouseup', this.onMouseUpHandler, true);
|
1055
1059
|
const touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
|
1056
1060
|
const touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
|
1057
|
-
|
1058
|
-
|
1061
|
+
document.addEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
|
1062
|
+
document.addEventListener(touchEndEvent, this.onTouchEndHandler, true);
|
1059
1063
|
}
|
1060
1064
|
unwireResizeEvents() {
|
1061
1065
|
this.element.ownerDocument.defaultView.removeEventListener('resize', this.onReportWindowSize);
|
1062
1066
|
const touchMoveEvent = (Browser.info.name === 'msie') ? 'pointermove' : 'touchmove';
|
1063
1067
|
const touchEndEvent = (Browser.info.name === 'msie') ? 'pointerup' : 'touchend';
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
+
document.removeEventListener('mousemove', this.onMouseMoveHandler, true);
|
1069
|
+
document.removeEventListener('mouseup', this.onMouseUpHandler, true);
|
1070
|
+
document.removeEventListener(touchMoveEvent, this.onTouchMoveHandler, true);
|
1071
|
+
document.removeEventListener(touchEndEvent, this.onTouchEndHandler, true);
|
1068
1072
|
}
|
1069
1073
|
wireClickEvents() {
|
1070
1074
|
EventHandler.add(this.currentSeparator, 'touchstart click', this.clickHandler, this);
|
@@ -2846,10 +2850,6 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
2846
2850
|
currentX = this.getMaxWidth(panelModel) - this.elementWidth;
|
2847
2851
|
this.mOffX = dX - currentX;
|
2848
2852
|
}
|
2849
|
-
else if (this.elementX + this.elementWidth + dX > this.maxLeft) {
|
2850
|
-
currentX = this.maxLeft - this.elementX - this.elementWidth;
|
2851
|
-
this.mOffX = dX - currentX;
|
2852
|
-
}
|
2853
2853
|
this.elementWidth += currentX;
|
2854
2854
|
}
|
2855
2855
|
el.style.top = this.elementY + 'px';
|
@@ -3089,7 +3089,6 @@ let DashboardLayout = class DashboardLayout extends Component {
|
|
3089
3089
|
const row = parseInt(ele.getAttribute('data-row'), 10);
|
3090
3090
|
const col = parseInt(ele.getAttribute('data-col'), 10);
|
3091
3091
|
this.panelPropertyChange(cellInstance, { row: row, col: col });
|
3092
|
-
this.updatePanelLayout(ele, cellInstance);
|
3093
3092
|
this.setHeightAndWidth(ele, this.getCellInstance(ele.id));
|
3094
3093
|
this.setPanelPosition(ele, row, col);
|
3095
3094
|
this.updateRowHeight();
|