@syncfusion/ej2-layouts 19.4.48 → 19.4.52

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.
@@ -1564,7 +1564,7 @@ let Splitter = class Splitter extends Component {
1564
1564
  }
1565
1565
  getSeparatorPosition(e) {
1566
1566
  this.updateCursorPosition(e, 'current');
1567
- const rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left :
1567
+ const rectBound = (this.orientation === 'Horizontal') ? this.element.getBoundingClientRect().left + window.scrollX :
1568
1568
  this.element.getBoundingClientRect().top + window.scrollY;
1569
1569
  const offSet = (this.orientation === 'Horizontal') ? this.element.offsetWidth : this.element.offsetHeight;
1570
1570
  return this.calcDragPosition(rectBound, offSet);
@@ -1841,7 +1841,7 @@ let Splitter = class Splitter extends Component {
1841
1841
  }
1842
1842
  }
1843
1843
  validateDraggedPosition(draggedPos, prevPaneHeightWidth, nextPaneHeightWidth) {
1844
- const separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft :
1844
+ const separatorTopLeft = (this.orientation === 'Horizontal') ? this.currentSeparator.offsetLeft + window.scrollX :
1845
1845
  this.currentSeparator.offsetTop;
1846
1846
  const prePaneRange = separatorTopLeft - prevPaneHeightWidth;
1847
1847
  const nextPaneRange = nextPaneHeightWidth + separatorTopLeft;