@syncfusion/ej2-base 20.1.57 → 20.1.60
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 +6 -0
- package/{ReadMe.md → README.md} +1 -1
- package/dist/ej2-base.umd.min.js +10 -1
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +12 -0
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +12 -0
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +10 -1
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +155 -158
- package/src/draggable.js +12 -0
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -7879,6 +7879,18 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
|
|
|
7879
7879
|
draEleTop -= this.parentScrollY;
|
|
7880
7880
|
draEleLeft -= this.parentScrollX;
|
|
7881
7881
|
}
|
|
7882
|
+
if (this.helperElement.classList.contains('e-treeview')) {
|
|
7883
|
+
var body = document.body;
|
|
7884
|
+
var html = document.documentElement;
|
|
7885
|
+
var tempHeight = Math.max(body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
|
|
7886
|
+
var tempWidth = Math.max(body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
|
|
7887
|
+
if (draEleTop > tempHeight) {
|
|
7888
|
+
draEleTop = tempHeight;
|
|
7889
|
+
}
|
|
7890
|
+
if (draEleLeft > tempWidth) {
|
|
7891
|
+
draEleLeft = tempWidth;
|
|
7892
|
+
}
|
|
7893
|
+
}
|
|
7882
7894
|
var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
|
|
7883
7895
|
setStyleAttribute(helperElement, this.getDragPosition(dragValue));
|
|
7884
7896
|
if (!this.elementInViewport(helperElement) && this.enableAutoScroll) {
|