@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.
@@ -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) {